Skip to content

Commit

Permalink
Merge pull request #2972 from stan-dev/jenkins
Browse files Browse the repository at this point in the history
jenkins: use builtin disableConcurrentBuilds abortPrevious
  • Loading branch information
WardBrian authored Nov 9, 2023
2 parents 35ac188 + 650efe9 commit e43fc08
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pipeline {
preserveStashes(buildCount: 7)
parallelsAlwaysFailFast()
buildDiscarder(logRotator(numToKeepStr: '20', daysToKeepStr: '30'))
disableConcurrentBuilds(abortPrevious: true)
}
environment {
STAN_NUM_THREADS = 4
Expand All @@ -66,18 +67,6 @@ pipeline {
}
stages {

stage('Kill previous builds') {
when {
not { branch 'develop' }
not { branch 'master' }
}
steps {
script {
utils.killOldBuilds()
}
}
}

stage("Clang-format") {
agent {
docker {
Expand Down

0 comments on commit e43fc08

Please sign in to comment.