I have a Jenkinsfile in my repo, and one of the stages uses resources
shared across every branch, but I need to limit it to only one build at a
time. It seems that if two branches are being built simultaneously, they
don't respect the concurrency parameter and end up using the shared
resource at the same time.
I'd like the branch builds to wait until the other branch is out of that
shared stage before entering, which is what i thought the concurrency
parameter would do.
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?
}
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e352d5e0-81aa-4fb4-9de7-3efdc281973e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.