How to revive expired branches in Bamboo?

We're currently using Bamboo 5.10 for automatic building processes. In one plan we enabled branch detection to build different branches automatically (multiple release and feature branches), which is a really awesome feature.
Before we realized that we should switch the "Inactive branches" dropdown to "Do not delete inactive branches" one branch got recognized by Bamboo but then removed a few days later due to inactivity. However this an important branch where a release is created every few weeks, so we need it back in the game.
I tried to switch manually to this branch in the "Repositories" tab, which worked to build the branch, but when switching back the repository configuration to the "master" branch, the build on the special branch got recorded as "master" build and the special branch is still not in the list of branches. So this trick couldn't be used to re-add the branch.
When changing the branch name in the "Repositories" tab, Bamboo displayed a warning message "This change could invalidate existing branches repository configuration. Please fix them manually."  What does that mean? How do I fix the branch configuration manually?
Yes, I'd really like to manipulate the list of branches manually (to re-add the special release branch), but I haven't seen a place where the list of branches known (or formerly known) to a Bamboo plan is exposed to be edited.
So, what's the best way to resolve this problem? The only way that I can currently think of is to clone the plan and start over, this time making sure "Do no delete inactive branches" is always enabled. But this seems to be extremely inelegant ... 

1 answer

1 accepted

1 vote
Accepted answer

You should be able to go to Actions->Configure Plan and then click on the Branches tab.  It should show the currently existing branches on the left.

You can add a new branch with the "Create plan branch" button in the top-right.  It will show you a list of branches on your source repo that don't exist as plan branches or allow you to create a branch manually.  

You can also delete branches by clicking on them in the sidebar (which takes you to the "Branch details" screen) and then clicking Actions->Delete branch.


Ah - great, thank you smile

I hadn't noticed the "Create plan branch" button - that worked fine. This was exactly what I was looking for.

Yay, problem solved!


Is it possible to get Bamboo to automatically (re)create build plans for branches that have expired? We are experiencing difficulties where we go back to (not very) old feature branches that have expired (over 7 days) but Bamboo does not run builds for new commits. What can I do?

Like 1 person likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Statuspage

Introducing Statuspage Getting Started guides! First up: What is Statuspage?

Over the next several weeks we'll be sharing some of our Getting Started guides here in the community. Throughout this series of posts, we'd love to hear from customers and non-customers ab...

175 views 4 1
Join discussion

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