You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.