Is it possible to set a plan to allow concurrent exexecution of stages or jobs?
I have a changeset build process (like a gated checkin build but we build after the checkin). At present, we use a bunch of scripts and three plans:
- Process queue for next changeset
- Run Build
- Finalize Results
I'd like to setup one plan and manage the rest inside it. I believe I can only set concurrent build limits at the plan level so I'll need to set this up as follows:
- Process-queue-plan manages incoming queue of changeset to run and starts Run-Build-Plan (concurrent limit = 1)
- Run-Build-Plan builds specific revision in JOB1 and then finalizes in JOB2 (concurrent limit = many)
Please let me know if I'm right in my understanding that concurrency is per plan and not per start or job.
It's true that concurrency limit is per plan, but it doesn't mean you can't achieve what you want ;-)
If I understand correctly "Process queue for next changeset" does sth like the following:
- check if there are new commits in source repo(s) (and this needs to be one-at-a-time thing)
- spawn a process that will run 2 build steps. (there can be many of those processes)
Here's the thing: this is exactly what Bamboo can do for you.
Set up a plan, configure "Repository polling"* automatic trigger and add your 2 stages to the plan**. Set up concurrency limit to whatever you want. Done.
Internally, the triggering build logic uses an exclusive lock, so even though Jobs will run in paraller, only one 'triggering process' will run at a time, regardless of concurrency setting.
*) there are other options too ;-)
**) Actually your 2 build scripts might be better mapped to single Bamboo Job with many Tasks rather to 2 Stages, depending on how your scripts interact. For example: are they supposed to run in the same dir? If so, Tasks are better choice. More on this: https://confluence.atlassian.com/display/BAMBOO/Using+stages+in+a+plan
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Happy Friday, Funmakers! We had a Community Team offsite in Austin this week, and my mind feels primed for thinkin' from all the brainstorming we did! So, this week's Friday Fun thread w...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs