Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,183
Community Members
 
Community Events
168
Community Groups

How to rebuild only unsuccessful stages not the Successful Stages?

Edited

My build contains some 10 stages and each stage takes like 10 minutes on average (its our Acceptance Suite), so when the build fails i want to re-build only unsuccessful stages, not all successful stages because we have to wait long time for other successful stages. 

 

and we are using BambooSpecs, configuration as Code

1 answer

Bamboo supports manually Rerunning a failed stage as follows:

 

If a stage has failed in your build, you can choose to rerun the stage (with exactly the same data) instead of the entire plan.

To rerun a stage:

  1. Navigate to the failed build result, as described on Viewing a build result.
  2. Choose Run > Rerun all failed Jobs to run the stage again.

Note that:

  • Only failing jobs will be re-run.
  • Subsequent stages will be executed automatically, unless they are manual stages.
  • You might want to add a comment to the build result to record the reason for failure. The existing build result will be overwritten (Bamboo will not create a new build) and the previous failure reason will not be retained.
  • For plans based on a Subversion repository, you can only rerun the failed job or the whole plan.

Screenshot: Rerunning a failed stage

 

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events