Skip previously successful tasks when (Re)running failed deployment/release


Using Bamboo 5.9.2 with Subversion.  Our deployment process runs a set of predefined tasks, some of these tasks cannot be rerun and any of the tasks could fail.

If task #5 fails, currently we need to edit the deployment plan and manually disable tasks 1-4 before rerunning and then remember to re-enable the tasks once deployment completes successfully.

Is it possible to configure Bamboo deployment process to automatically 'skip' tasks that were previously completed successfully when re-running a deployment/release (i.e. start with the first failed task)

I could imagine each task would contain an option to preserve its state, and when deploying an option would be to ignore already completed tasks (if task is configured for that)



1 answer

1 vote
Marcin Oles Atlassian Team Aug 18, 2015


the scenario you've described can't be currently achieved using deployment projects in Bamboo.

However, what can work for you as a workaround (note: not a recommended way to run deployments) is to move deployment phase to the build plan as additional, manually triggered stages. There are drawbacks of doing so, but it will allow you to perform action "rerun only failed jobs", which will rerun only from the stage that has failed.

So you can have multiple stages. As an example:

  • stage 1 (automatic): build plan stage 1
  • stage 2 (automatic): build plan stage 2 if needed
  • ...
  • stage N (automatic): build plan stage N if needed
  • stage N+1 (manual): deployment tasks #1-#4, not rerunable
  • stage N+2 (automatic): deployment task #5, rerunable
  • ...

Of course this attempt might require some modifications and in your case might not be possible. Just a suggestion.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,801 views 0 6
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