diff --git a/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt b/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt index 7205aac40b6..01c00fec8a0 100644 --- a/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt +++ b/.teamcity/builds/kotlinlang/templates/DockerImageBuilder.kt @@ -34,15 +34,9 @@ object DockerImageBuilder : Template({ onDependencyCancel = FailureAction.CANCEL } - dependency(BuildKotlinGrammar) { - snapshot { - onDependencyFailure = FailureAction.FAIL_TO_START - onDependencyCancel = FailureAction.CANCEL - } - - artifacts { - artifactRules = "grammar.xml" - } + artifacts(BuildKotlinGrammar) { + buildRule = lastPinned("+:*") + artifactRules = "grammar.xml" } } })