One Bamboo Plan Triggering Other Plans

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

I have this sturcture in Bamboo:

Project A

- Plan 1

- Plan 2

- Plan 3

- Plan 4

How can I get Plan 1 to trigger Plan 2 and Plan 3 (as a task perhaps) one at a time?

And if Plan 2 and Plan 3 is a success, then run Plan 4?

3 answers

1 accepted

4 votes
Answer accepted
Jason Monsorno
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

If you want Plan dependecies, look under the Plan Configuration -> Dependecies tab for Child Plans, "When the current plan successfully builds, it will trigger the child plans to build."

Since Bamboo seems to use child plan dependencies only, they isn't a native way to have 2 plans have to succeed unless you trigger them individual 1 -> 2 -> 3 -> 4.

You can make it all one plan and just use stages or combine just 2 & 3. Jobs in the same stage will run in parallel (if resources/agent are available to do so).

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

"When the current plan successfully builds, it will trigger the child plans to build."

I don't really want this. Plan 1 is suppose to trigger Plan 2 and Plan 3.

You can make it all one plan and just use stages

Thanks for this input. Hopefully the team accepts this as they now see it as different plans.

Jason Monsorno
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

Going the first comment, you can provide more than 1 child plan for Plan1 can have Plan2 AND Plan3 as children. The difficult part is making them trigger Plan4 together.

Second Comment:

Build 1 is Triggered
--Trickle effect, assuming success--
1 Success implies build 2
--Trickle effect, assuming success--
2 Success implies build 3
--Trickle effect, assuming success--
3 Success implies build 4

2 has to succeed to build 3 and 3 has to succeed to build 4 so it makes it sequential. If 2 fails, 3 won't trigger so 4 can't be triggered.

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

One last question.

unless you trigger them individual 1 -> 2 -> 3 -> 4.

How would you do Plan 4 then? Plan 4 can only run if 2 and 3 are executed with success.

Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

I think your above comment will work.

Cheers!

Vineela May 19, 2019

One query here , is there any possibility to trigger only a stage when a build is successful ? and the stage result shouldn't affect the build in any case. 

3 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

CLI Plugin for Bamboo provides the ability to queue other builds and optionally wait for completion. This can help with situations where the Bamboo dependency handling isn't sufficient or you have multiple Bamboo servers and you need to have some coordination between them. See queueBuild.

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events