Skip to content

Commit

Permalink
enhance: [cpp-unit-test] abort previous build if it's a PR, otherwise… (
Browse files Browse the repository at this point in the history
#37571)

[cpp-unit-test] abort previous build if it's a PR, otherwise queue the
build

Signed-off-by: Yellow Shine <[email protected]>
  • Loading branch information
yellow-shine authored Nov 12, 2024
1 parent 2630717 commit cef5b7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/jenkins/UT-CPP.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ pipeline {
parallelsAlwaysFailFast()
buildDiscarder logRotator(artifactDaysToKeepStr: '30')
preserveStashes(buildCount: 5)
disableConcurrentBuilds(abortPrevious: true)
// abort previous build if it's a PR, otherwise queue the build
disableConcurrentBuilds(abortPrevious: env.CHANGE_ID != null)
timeout(time: 6, unit: 'HOURS')
throttleJobProperty(
categories: ['cpp-unit-test'],
Expand Down

0 comments on commit cef5b7f

Please sign in to comment.