Hi there, I'm using workflow plugin to automate a workflow where new features are submitted as pull requests to the master branch of a git repository. Once the feature has been tested independently we schedule a 'release' workflow job that is meant to:
1. Merges the pull-request locally 2. Builds and verifies the resulting snapshot 3. Deploys the snapshot to a staging server and runs integration tests on the staging server 4. If all is well, push the resulting merge to the remote repo and deploy the build to production. This is works really well until multiple branches are queued for release at the same time. I've tried to use the stage step to serialize execution of these release builds so that if there are two or three branches to release at the same time, they are processed in sequence. I've tried using the 'stage' step, but this will actually abort waiting builds if newer builds enter the queue. That's to avoid successive builds from the same branch, but here I want all builds to run, just in sequence. Workflow jobs don't appear to have the option to limit concurrency through the UI as far as I can tell. I'm not sure I fully understand how the concurrency parameter works, though: the TUTORIAL.md doc says that: A concurrency of one is useful to let you lock a singleton resource, such > as deployment to a single target server. Only one build will deploy at a > given time: the newest which passed all previous stages. But it seems from the StepExecution.java that a build queued to enter the stage are still aborted if a newer builds enters the stage. Could we add a parameter to the step to determine whether new builds entering the stage preƫmpt older builds? Thanks, Alex -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1421fe2b-6817-4fa3-85b4-e2185dd8c879%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.