Skip to content

Commit 650efe9

Browse files
committed
jenkins: try builtin abortPrevious
rather than custom killOldBuilds
1 parent 35ac188 commit 650efe9

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Jenkinsfile

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pipeline {
4545
preserveStashes(buildCount: 7)
4646
parallelsAlwaysFailFast()
4747
buildDiscarder(logRotator(numToKeepStr: '20', daysToKeepStr: '30'))
48+
disableConcurrentBuilds(abortPrevious: true)
4849
}
4950
environment {
5051
STAN_NUM_THREADS = 4
@@ -66,18 +67,6 @@ pipeline {
6667
}
6768
stages {
6869

69-
stage('Kill previous builds') {
70-
when {
71-
not { branch 'develop' }
72-
not { branch 'master' }
73-
}
74-
steps {
75-
script {
76-
utils.killOldBuilds()
77-
}
78-
}
79-
}
80-
8170
stage("Clang-format") {
8271
agent {
8372
docker {

0 commit comments

Comments
 (0)