Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,932
Community Members
 
Community Events
184
Community Groups

Bamboo Deployment Triggers

We are using Bamboo Version 6.4.0. We have 6 Environments in a Bamboo Deployment Plan as shown below

Env1
Env2
Env3
Env4
Env5
Env6

We want Env6 to be executed only after Env1 thru Env5 are successfully deployed.
We set the Triggers accordingly ( After Successful deployment of Env1 thru Env5).
This setup seems not working if any of the Dependent enviroments ( Env1 thru ENV5) fails.

Can someone suggest a work around for this?.

2 answers

Rajath,

Thank you so much for your reply. I think you din't understand our situation.Let me explain you our situation one more time.

We have Bamboo Deployment Plan which has 6 deployment environments ( Env1 , Env2 ,Env3, Env4 , Env5 and Env6 ).

We want Env6 to deployed only if all of the depending Environments ( Env1 , Env2 ,
Env3, Env4 , Env5 ) are deployed successfully.

We setup the Triggers for Env6 accordingly ( After Successful deployment of Env1 thru Env5 ).We were expecting Env6 will be deployed only once ( when all of the Env1 thru Env5 are deployed successfully.

But the problem is sometimes Env6 is being deployed 5 times which means , Env6 is being deployed immediately after Env1 , Env2 ,Env3, Env4 , Env5 are deployed.

Venkat,

 

If Env6 is deploying five times, I guess you have given 5 triggers for it to trigger.  That is not the ideal case. If you want to trigger Env6 only after all the other environments are successful, you should follow the method like I said. 

Your method (assumption) :

Triggers in Env6 :  Env1 , Env2 ,Env3, Env4 , Env5 

This will result in triggering Env6 everytime one of the Env1 - Env5 are successful making 5 deployments for Env6

 

Correct way : 

Triggers in Env2 : Env1 

Trigger in Env3 : Env2

Trigger in Evn4 : Env3

Trigger in Env5 : Env4 

Trigger in Evn6 : Env5

This way Env6 will trigger only after all the first 5 Env are successful. Also if any of the first 5 fails it`ll stop the flow and Env1 can be triggered manually or by the bamboo plan providing artifacts to it.

 

Hope this helps.

 

Regards,

Rajath

Hi Venkat,

You can have a After Successful deployment trigger in each environment with the triggering environment being the previous environment as shown below :

If you have three environments dev, qa , prod. Configure triggers only in qa and prod with triggering environment as below :

dev <- can be triggered from bamboo plan or can be manual

qa <- dev ( triggered by dev deployment once it is success )

prod <- qa  ( triggered by qa deployment once it is success )

Do not create multiple triggers like below :

qa <- dev

prod <- dev , qa 

By doing so , prod will trigger in cases dev is successful but qa failed.

Hope this helps.

 

Regards,

Rajath

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events