Skip to content

Commit 10f99bb

Browse files
committed
fix: add missing gradle file
1 parent 3ea836f commit 10f99bb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.teamcity/builds/Gradle.kt

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)