From e6ee10be0d610861b5d0902b10e24a0edf117140 Mon Sep 17 00:00:00 2001 From: Nikolay Pachkov Date: Sun, 27 Oct 2024 09:36:49 +0100 Subject: [PATCH] KTL-1723 fix: get last successful grammar build --- .../kotlinlang/templates/DockerImageBuilder.kt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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" } } })