Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

2 votes
Answer accepted

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?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

694 views 1 6
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you