Skip to content

Commit

Permalink
Disable concurrent builds in pipelines
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
henrirosten committed Aug 7, 2024
1 parent 6552a2a commit 62e4ecb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ghaf-main-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pipeline {
pollSCM('* * * * *')
}
options {
disableConcurrentBuilds()
timestamps ()
buildDiscarder(logRotator(numToKeepStr: '100'))
}
Expand Down
1 change: 1 addition & 0 deletions ghaf-nightly-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pipeline {
pollSCM('0 23 * * *')
}
options {
disableConcurrentBuilds()
timestamps ()
buildDiscarder(logRotator(numToKeepStr: '100'))
}
Expand Down
1 change: 1 addition & 0 deletions ghaf-pre-merge-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ properties([
pipeline {
agent { label 'built-in' }
options {
disableConcurrentBuilds()
timestamps ()
buildDiscarder(logRotator(numToKeepStr: '100'))
}
Expand Down

0 comments on commit 62e4ecb

Please sign in to comment.