We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea836f commit 10f99bbCopy full SHA for 10f99bb
.teamcity/builds/Gradle.kt
@@ -0,0 +1,29 @@
1
+package builds
2
+
3
+import jetbrains.buildServer.configs.kotlin.BuildType
4
+import jetbrains.buildServer.configs.kotlin.buildFeatures.dockerSupport
5
+import jetbrains.buildServer.configs.kotlin.toId
6
7
+class Gradle(
8
+ id: String,
9
+ name: String,
10
+ goals: String,
11
+ args: String? = null,
12
+ javaVersion: String = DEFAULT_JAVA_VERSION,
13
+ size: LinuxSize = LinuxSize.SMALL
14
+) :
15
+ BuildType({
16
+ this.id(id.toId())
17
+ this.name = name
18
19
+ steps {
20
+ runGradle(javaVersion) {
21
+ this.tasks = goals
22
+ this.jvmArgs = "$GRADLE_DEFAULT_ARGS ${args ?: ""}"
23
+ }
24
25
26
+ features { dockerSupport {} }
27
28
+ requirements { runOnLinux(size) }
29
+ })
0 commit comments