ci: Prevent concurrent builds

The `disableConcurrentBuilds` pipeline option tells Jenkins to force
subsequent builds _of the same job_ to wait in queue until the one
running has completed.  This is sufficient when there is only one
branch/project in development at a time.  In order to prevent multiple
projects from running simultaneously, we need to acquire a global lock;
all projects need to have this same option in order for it to be
effective.
kiosk
Dustin 2024-12-31 13:09:06 -06:00
parent 6258df154c
commit 43d15bdbf8
1 changed files with 5 additions and 0 deletions

5
ci/Jenkinsfile vendored
View File

@ -8,6 +8,11 @@ pipeline {
} }
} }
options {
disableConcurrentBuilds()
lock 'aimee-os'
}
stages { stages {
stage('Prepare') { stage('Prepare') {
steps { steps {