The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to run second Stage in case of first Stage fails?

Konstantin Balashow
November 8, 2021

Hello!

I have a bamboo build with 2 stages: 1st Stage and 2nd Stage. How can I run manually 2nd Stage in case of 1st Stage failed?




Atlassian Bamboo version 7.1.4 build 70122 - 03 Nov 20

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2021

Hello,

In case you have two independent process which should be executed regardless of status of another one, then put your tasks into different Jobs inside one Stage

In case you need to run tasks sequentially then put them to Stages, then Stage 2 will be executed after success of Stage 1

It's possible to mark Stage as Final, then Bamboo will trigger it regardless of status of previous stages. It's useful if you want to cleanup resources generated or taken by previous Stages

Konstantin Balashow
November 8, 2021

Thanks for different ways!

>In case you need to run tasks sequentially then put them to Stages, then Stage 2 will be executed after success of Stage 1

Does it mean that the only way to run Stage 2 sequentially it's successful Stage 1?

Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2021

Yes if Stage 2 is regular stage.

If it's Final stage, then it will be executed after success or failure of Stage 1

Like Steffen Opel _Utoolity_ likes this
Konstantin Balashow
November 9, 2021

Thanks!

TAGS
AUG Leaders

Atlassian Community Events