Can Bamboo plan branch management, re-create branch plans that were auto-deleted?

We use Bamboo's plan branches and the auto-management is on. So the text on the UI says:

Bamboo will automatically create Plan Branches when it detects new branches in your version control system and automatically remove Plan Branches from Bamboo after a specified period of inactivity. Detection of new branches runs every 5 minutes

Observed and desired behaviour:

  • New git branch is created, Bamboo creates new plan branch.
  • git branch has lots of activity, plan branch kicks off builds.
  • git branch has no activity for our configured 15 days, plan branch is deleted.

Aww, it doesn't have this behaviour:

  • Git branch receives a commit - :( Bamboo doesn't re-create the plan branch and fire a build.

In other words, we'd prefer the behaviour to be: create new plan branch on new or updated git branches, if no plan branch exists for that git branch. Or - can I enable this, and if so, how?

3 answers

The answer to the original question is: nope

I see that https://jira.atlassian.com/browse/BAM-12161 has been created for this issue. From the comments, it looks like Atlassian isn't really planning on implementing this feature. Please vote for the ticket. If enough users do so, hopefully they'll change their minds.

We would also be very much interested in this option to recreate the plan branch. As a work-around we set the auto-clean up delay to zero (for never clean up).

Also, why is it so that branch-detection is by polling every 5 minutes? We don't like to wait. Can't we change this or configure it to work with a trigger like with auto-builds with new commits?

+1000 for this issue We're using both Stash and Bamboo, and have set the Pull Request to only be merged when we have at least one successful build. When a branch is deleted in Bamboo and not re-created, we're not able to get a successful build, and I have to disable this check, merge that pull request and enable the check again. If it is not possible to have Bamboo re-create the branch automatically, is there (or will there be) a command to create the branch manually, such that it is not necessary to override these checks?

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,561 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