Skip to content

Commit 5a1c578

Browse files
authored
ci: add prepare build step (#4)
1 parent e2fff0d commit 5a1c578

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.teamcity/builds/Build.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Build(name: String, branchFilter: String, forPullRequests: Boolean) : Proj
1414
val bts = sequential {
1515
if (forPullRequests) buildType(WhiteListCheck("${name}-whitelist-check", "white-list check"))
1616
if (forPullRequests) buildType(PRCheck("${name}-pr-check", "pr check"))
17+
buildType(Maven("${name}-prepare-build", "prepare-build", "clean install", "-f build-resources/pom.xml"))
1718
buildType(Maven("${name}-build", "build", "clean compile"))
1819
parallel {
1920
buildType(Maven("${name}-unit-tests", "unit tests", "clean test"))

.teamcity/builds/Maven.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package builds
33
import jetbrains.buildServer.configs.kotlin.BuildType
44
import jetbrains.buildServer.configs.kotlin.buildFeatures.dockerSupport
55
import jetbrains.buildServer.configs.kotlin.buildSteps.MavenBuildStep
6+
import jetbrains.buildServer.configs.kotlin.buildSteps.MavenBuildStep.RepositoryScope
67
import jetbrains.buildServer.configs.kotlin.buildSteps.maven
78
import jetbrains.buildServer.configs.kotlin.toId
89

@@ -26,6 +27,8 @@ class Maven(id: String, name: String, goals: String, args: String? = null) : Bui
2627
dockerImagePlatform = MavenBuildStep.ImagePlatform.Linux
2728
dockerImage = "eclipse-temurin:11-jdk"
2829
dockerRunParameters = "--volume /var/run/docker.sock:/var/run/docker.sock"
30+
31+
localRepoScope = RepositoryScope.BUILD_CONFIGURATION
2932
}
3033
}
3134

0 commit comments

Comments
 (0)