From 62e4ecbc40dff6a455a0fe67a838dc781d9f0837 Mon Sep 17 00:00:00 2001 From: Henri Rosten Date: Tue, 6 Aug 2024 13:02:18 +0300 Subject: [PATCH] Disable concurrent builds in pipelines Set `disableConcurrentBuilds()` option to pipelines that did not explicitly set it yet. This is need to prevent the issue descibed in https://ssrc.atlassian.net/browse/SP-4957. Signed-off-by: Henri Rosten --- ghaf-main-pipeline.groovy | 1 + ghaf-nightly-pipeline.groovy | 1 + ghaf-pre-merge-pipeline.groovy | 1 + 3 files changed, 3 insertions(+) diff --git a/ghaf-main-pipeline.groovy b/ghaf-main-pipeline.groovy index 46334bf..3143bf8 100644 --- a/ghaf-main-pipeline.groovy +++ b/ghaf-main-pipeline.groovy @@ -23,6 +23,7 @@ pipeline { pollSCM('* * * * *') } options { + disableConcurrentBuilds() timestamps () buildDiscarder(logRotator(numToKeepStr: '100')) } diff --git a/ghaf-nightly-pipeline.groovy b/ghaf-nightly-pipeline.groovy index df34781..7031f20 100644 --- a/ghaf-nightly-pipeline.groovy +++ b/ghaf-nightly-pipeline.groovy @@ -28,6 +28,7 @@ pipeline { pollSCM('0 23 * * *') } options { + disableConcurrentBuilds() timestamps () buildDiscarder(logRotator(numToKeepStr: '100')) } diff --git a/ghaf-pre-merge-pipeline.groovy b/ghaf-pre-merge-pipeline.groovy index 9199d0a..176d881 100644 --- a/ghaf-pre-merge-pipeline.groovy +++ b/ghaf-pre-merge-pipeline.groovy @@ -48,6 +48,7 @@ properties([ pipeline { agent { label 'built-in' } options { + disableConcurrentBuilds() timestamps () buildDiscarder(logRotator(numToKeepStr: '100')) }