1
- import jetbrains.buildServer.configs.kotlin.AbsoluteId
2
1
import jetbrains.buildServer.configs.kotlin.BuildFeatures
3
2
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,7 +10,6 @@ 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
14
13
import jetbrains.buildServer.configs.kotlin.version
15
14
16
15
/*
@@ -37,21 +36,8 @@ To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View
37
36
38
37
version = " 2023.11"
39
38
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
-
51
39
project {
52
40
53
- vcsRoot(AnvilVcsRoot )
54
-
55
41
val test = Test ()
56
42
val style = Style ()
57
43
val pluginJar = PluginJar ()
@@ -77,7 +63,7 @@ project {
77
63
78
64
fun BuildType.configureVcs () {
79
65
vcs {
80
- root(AnvilVcsRoot )
66
+ root(DslContext .settingsRoot )
81
67
}
82
68
}
83
69
@@ -97,7 +83,7 @@ fun BuildType.configureTriggers() {
97
83
fun BuildFeatures.configureBaseFeatures () {
98
84
perfmon {}
99
85
commitStatusPublisher {
100
- vcsRootExtId = " ${AnvilVcsRoot .id} "
86
+ vcsRootExtId = " ${DslContext .settingsRoot .id} "
101
87
publisher = github {
102
88
githubUrl = " https://api.github.com"
103
89
authType = personalToken {
@@ -109,7 +95,7 @@ fun BuildFeatures.configureBaseFeatures() {
109
95
110
96
fun BuildFeatures.configurePullRequests () {
111
97
pullRequests {
112
- vcsRootExtId = " ${AnvilVcsRoot .id} "
98
+ vcsRootExtId = " ${DslContext .settingsRoot .id} "
113
99
provider = github {
114
100
authType = token {
115
101
token = " credentialsJSON:f57a4fdd-fb30-41c0-9983-620364336d03"
0 commit comments