Skip to content

Commit

Permalink
Include snapshot dependencies required for image build.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyKoltsov1997 committed Jan 18, 2023
1 parent ba2f94e commit f39f632
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package hosted.scheduled.build

import common.TeamCityDockerImagesRepo.TeamCityDockerImagesRepo
import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.FailureAction
import jetbrains.buildServer.configs.kotlin.v2019_2.ReuseBuilds
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.DockerCommandStep
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dockerCommand

Expand Down Expand Up @@ -43,4 +46,16 @@ object TeamCityScheduledImageBuildLinux : BuildType({
}
}
}

dependencies {
dependency(AbsoluteId("TC_Trunk_BuildDistDocker")) {
snapshot {
onDependencyFailure = FailureAction.IGNORE
reuseBuilds = ReuseBuilds.ANY
}
artifacts {
artifactRules = "TeamCity.zip!/**=>context/TeamCity"
}
}
}
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package hosted.scheduled.build

import common.TeamCityDockerImagesRepo.TeamCityDockerImagesRepo
import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId
import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType
import jetbrains.buildServer.configs.kotlin.v2019_2.FailureAction
import jetbrains.buildServer.configs.kotlin.v2019_2.ReuseBuilds
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.DockerCommandStep
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.dockerCommand

Expand Down Expand Up @@ -45,4 +48,16 @@ object TeamCityScheduledImageBuildWindows : BuildType({
}
}
}

dependencies {
dependency(AbsoluteId("TC_Trunk_BuildDistDocker")) {
snapshot {
onDependencyFailure = FailureAction.IGNORE
reuseBuilds = ReuseBuilds.ANY
}
artifacts {
artifactRules = "TeamCity.zip!/**=>context/TeamCity"
}
}
}
})

0 comments on commit f39f632

Please sign in to comment.