This repository has been archived by the owner on May 1, 2024. It is now read-only.
/
settings.kts
189 lines (159 loc) · 5.16 KB
/
settings.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
package GradleTeamCityPlugin
import jetbrains.buildServer.configs.kotlin.v10.*
import jetbrains.buildServer.configs.kotlin.v10.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v10.projectFeatures.VersionedSettings
import jetbrains.buildServer.configs.kotlin.v10.projectFeatures.versionedSettings
import jetbrains.buildServer.configs.kotlin.v10.triggers.vcs
import jetbrains.buildServer.configs.kotlin.v10.vcs.GitVcsRoot
import jetbrains.buildServer.configs.kotlin.v10.BuildType
/*
The settings script is an entry point for defining a single
TeamCity project. TeamCity looks for the 'settings.kts' file in a
project directory and runs it if it's found, so the script name
shouldn't be changed and its package should be the same as the
project's external id.
The script should contain a single call to the project() function
with a Project instance or an init function as an argument, you
can also specify both of them to refine the specified Project in
the init function.
VcsRoots, BuildTypes, and Templates of this project must be
registered inside project using the vcsRoot(), buildType(), and
template() methods respectively.
Subprojects can be defined either in their own settings.kts or by
calling the subProjects() method in this project.
*/
version = "10.0"
project {
uuid = "2c4c777e-bf5d-4eaf-8e46-eea999fdbd89"
extId = "GradleTeamCityPlugin"
parentId = "_Root"
name = "Gradle TeamCity Plugin"
description = "Gradle plugin for developing TeamCity plugins"
vcsRoot(GitVcsRoot({
uuid = "723408f3-cc0c-42da-b348-dedd4bc030ef"
extId = "TeamcitySettings"
name = "teamcity-settings"
url = "https://github.com/rodm/teamcity-settings"
}))
features {
versionedSettings {
id = "PROJECT_EXT_1"
mode = VersionedSettings.Mode.ENABLED
buildSettingsMode = VersionedSettings.BuildSettingsMode.PREFER_SETTINGS_FROM_VCS
rootExtId = "TeamcitySettings"
showChanges = true
settingsFormat = VersionedSettings.Format.KOTLIN
}
}
val vcs = GitVcsRoot({
uuid = "ac063d49-90e5-4baf-84b3-7f307586ae0e"
extId = "GradleTeamcityPlugin"
name = "gradle-teamcity-plugin"
url = "https://github.com/rodm/gradle-teamcity-plugin.git"
})
vcsRoot(vcs)
val java7BuildType = BuildType({
uuid = "b9b0cbf7-1665-4fe5-a24d-956280379ef0"
extId = "GradleTeamcityPlugin_BuildJava7"
name = "Build - Java 7"
vcs {
root(vcs)
}
steps {
gradle {
tasks = "%gradle.tasks%"
useGradleWrapper = true
gradleWrapperPath = ""
enableStacktrace = true
jdkHome = "%java.home%"
}
}
params {
param("gradle.tasks", "clean build")
param("java.home", "%java7.home%")
}
triggers {
vcs {
}
}
})
buildType(java7BuildType)
val java8BuildType = BuildType({
uuid = "b9b0cbf7-1665-4fe5-a24d-956280379ef1"
extId = "GradleTeamcityPlugin_BuildJava8"
name = "Build - Java 8"
vcs {
root(vcs)
}
steps {
gradle {
tasks = "%gradle.tasks%"
useGradleWrapper = true
gradleWrapperPath = ""
enableStacktrace = true
jdkHome = "%java.home%"
}
}
triggers {
vcs {
}
}
params {
param("gradle.tasks", "clean build")
param("java.home", "%java8.home%")
}
})
buildType(java8BuildType)
val functionalTestJava7BuildType = BuildType({
uuid = "b9b0cbf7-1665-4fe5-a24d-956280379ef2"
extId = "GradleTeamcityPlugin_FunctionalTestJava7"
name = "Functional Test - Java 7"
vcs {
root(vcs)
}
steps {
gradle {
tasks = "%gradle.tasks%"
useGradleWrapper = true
gradleWrapperPath = ""
enableStacktrace = true
jdkHome = "%java.home%"
}
}
triggers {
vcs {
}
}
params {
param("gradle.tasks", "clean functionalTest")
param("java.home", "%java7.home%")
}
})
buildType(functionalTestJava7BuildType)
val functionalTestJava8BuildType = BuildType({
uuid = "b9b0cbf7-1665-4fe5-a24d-956280379ef3"
extId = "GradleTeamcityPlugin_FunctionalTestJava8"
name = "Functional Test - Java 8"
vcs {
root(vcs)
}
steps {
gradle {
tasks = "%gradle.tasks%"
useGradleWrapper = true
gradleWrapperPath = ""
enableStacktrace = true
jdkHome = "%java.home%"
}
}
triggers {
vcs {
}
}
params {
param("gradle.tasks", "clean functionalTest")
param("java.home", "%java8.home%")
}
})
buildType(functionalTestJava8BuildType)
}