stage name: 'Source code checkout'
node {
checkout scm
}
// Tests reuse the same resources
// I thought setting concurrency to 1 would avoid multiple branch builds stepping on each other
stage name: 'Test', concurrency: 1
node {
// This doesn't seem to be limited to one branch build at a time
// How can I achieve that?
}
When the lock step is used in a Pipeline, if the resource to be locked isn't already defined in the Jenkins global configuration, it'll be set up automatically.