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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I get a failed job in a stage to stop all the rest of the subsequent FINAL stages? Edited

We use Bamboo to build new VM environments to do a bunch of testing on our code. Sometimes the environment build fails, and ideally things would stop at that time, but instead Stage 1 Job 1 fails and and while Stage 2 and 3 fails, Stages 4, 5, 6 and 7 are of type FINAL and they don't fail and all their tasks try to run, even though they have no environment to run on. 
How can I get the initial failure to fail the rest of the Bamboo plan run even if other stages are of type FINAL?

1 answer

1 accepted

1 vote
Answer accepted

I resolved this by doing the following. 

1) After the environment build (SSH), I've added the following two tasks. 

2) Add Script immediately after environment build to write a parameter key set to a file on the Bamboo server.

3) Add Inject Variable as a task after the Script from part 2. 

4) For any FINAL Stages, add a Script at the beginning of the list of tasks that will check the variable set at Step 3 and based on the results, if the parameter is not set when the environment build, the Script will fail, so that the Stage of type FINAL will also fail. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

477 views 5 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you