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

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

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events