Can I run a task on a Plan after a previous task has failed?

I have a build process with ~10 steps that need to mostly be run in order. If any of the first nine steps fail, there's no need to run the rest of them. My problem arises from the last step. I want that to be run no matter what the outcome of the first 9 steps. Running steps 6-9 would be a decent sized waste of time if step 5 fails, but I still want step 10 to be called as a clean-up step.

Ideally, this would all be part of one plan, but even linking seperate plans together wouldn't be too bad. I'm really hoping that I'm missing something obvious and there's a way to do this, because otherwise the process will likely gain layers of difficulty/complexity.

2 answers

1 accepted

How large are those initial steps? If you can make them all tasks within a single job, then you can specify "Final Tasks" that will run no matter what.

Right. So later stages aren't called if the early stages fail, but a finalized task within the same stage will get called. So to do this, I need them all in the same plan. I'm losing out on the ability to do parrallel tasks, but this is more important for the process. Oh well.

Thanks. That saved me from a very large headache. :)

0 votes

Sounds like you need to make the 10th task a finalising task. You can do that from the task configuration page.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,064 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot