Skip to content

Commit

Permalink
Replace usage of killOldBuilds with disableConcurrentBuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicusor Serban committed Nov 9, 2023
1 parent 92e0fc1 commit 215b103
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ pipeline {
preserveStashes(buildCount: 7)
parallelsAlwaysFailFast()
buildDiscarder(logRotator(numToKeepStr: '20', daysToKeepStr: '30'))
disableConcurrentBuilds(abortPrevious: true)
}
environment {
GCC = 'g++'
Expand All @@ -114,19 +115,6 @@ pipeline {
OPENCL_PLATFORM_ID_GPU = 0
}
stages {

stage('Kill previous builds') {
when {
not { branch 'develop' }
not { branch 'master' }
not { branch 'downstream_tests' }
}
steps {
script {
utils.killOldBuilds()
}
}
}
stage("Clang-format") {
agent {
docker {
Expand Down

0 comments on commit 215b103

Please sign in to comment.