diff --git a/ci/jenkins/UT-CPP.groovy b/ci/jenkins/UT-CPP.groovy index adc2038e8757a..2551d28d54227 100644 --- a/ci/jenkins/UT-CPP.groovy +++ b/ci/jenkins/UT-CPP.groovy @@ -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'],