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.
Dustin 2024-12-31 13:09:06 -06:00
parent 9c8a2172af
commit 06838ab0a4
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 {
stage('Prepare') {
steps {