1
+ import jetbrains.buildServer.configs.kotlin.AbsoluteId
1
2
import jetbrains.buildServer.configs.kotlin.BuildFeatures
2
3
import jetbrains.buildServer.configs.kotlin.BuildType
3
- import jetbrains.buildServer.configs.kotlin.DslContext
4
4
import jetbrains.buildServer.configs.kotlin.FailureAction
5
5
import jetbrains.buildServer.configs.kotlin.buildFeatures.PullRequests
6
6
import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
@@ -10,6 +10,7 @@ import jetbrains.buildServer.configs.kotlin.buildSteps.gradle
10
10
import jetbrains.buildServer.configs.kotlin.project
11
11
import jetbrains.buildServer.configs.kotlin.projectFeatures.githubIssues
12
12
import jetbrains.buildServer.configs.kotlin.triggers.vcs
13
+ import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot
13
14
import jetbrains.buildServer.configs.kotlin.version
14
15
15
16
/*
@@ -36,8 +37,21 @@ To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View
36
37
37
38
version = " 2023.11"
38
39
40
+ object AnvilVcsRoot : GitVcsRoot() {
41
+ init {
42
+ id = AbsoluteId (" anvil_git" )
43
+ name = " anvil"
44
+ url = " https://github.com/anvilpowered/anvil.git"
45
+ branch = " refs/heads/master"
46
+ branchSpec = " +:refs/heads/*"
47
+ userNameStyle = UserNameStyle .FULL
48
+ }
49
+ }
50
+
39
51
project {
40
52
53
+ vcsRoot(AnvilVcsRoot )
54
+
41
55
val test = Test ()
42
56
val style = Style ()
43
57
val pluginJar = PluginJar ()
@@ -54,7 +68,7 @@ project {
54
68
displayName = " anvilpowered/anvil"
55
69
repositoryURL = " https://github.com/anvilpowered/anvil"
56
70
authType = accessToken {
57
- accessToken = " credentialsJSON:7a0f679e-94e2-4f3e-b19a-db375294d40e "
71
+ accessToken = " credentialsJSON:f57a4fdd-fb30-41c0-9983-620364336d03 "
58
72
}
59
73
param(" tokenId" , " " )
60
74
}
@@ -63,7 +77,7 @@ project {
63
77
64
78
fun BuildType.configureVcs () {
65
79
vcs {
66
- root(DslContext .settingsRoot )
80
+ root(AnvilVcsRoot )
67
81
}
68
82
}
69
83
@@ -83,22 +97,22 @@ fun BuildType.configureTriggers() {
83
97
fun BuildFeatures.configureBaseFeatures () {
84
98
perfmon {}
85
99
commitStatusPublisher {
86
- vcsRootExtId = " ${DslContext .settingsRoot .id} "
100
+ vcsRootExtId = " ${AnvilVcsRoot .id} "
87
101
publisher = github {
88
102
githubUrl = " https://api.github.com"
89
103
authType = personalToken {
90
- token = " credentialsJSON:7a0f679e-94e2-4f3e-b19a-db375294d40e "
104
+ token = " credentialsJSON:f57a4fdd-fb30-41c0-9983-620364336d03 "
91
105
}
92
106
}
93
107
}
94
108
}
95
109
96
110
fun BuildFeatures.configurePullRequests () {
97
111
pullRequests {
98
- vcsRootExtId = " ${DslContext .settingsRoot .id} "
112
+ vcsRootExtId = " ${AnvilVcsRoot .id} "
99
113
provider = github {
100
114
authType = token {
101
- token = " credentialsJSON:7a0f679e-94e2-4f3e-b19a-db375294d40e "
115
+ token = " credentialsJSON:f57a4fdd-fb30-41c0-9983-620364336d03 "
102
116
}
103
117
filterAuthorRole = PullRequests .GitHubRoleFilter .MEMBER_OR_COLLABORATOR
104
118
}
0 commit comments