Why do my plan branches disappear?

Hi, I have setup and starting toying with plan branches. 

Currently I have automatic deletion disabled in my plan. And my match name is "release/.*", which is working ok, plan branches are being created and they build and it's lovely.

My problem is that when I come into ork the next day the plan branches are gone... I can't figure out why? I would like them to remain around for the lifetime of the branch. Our version is 5.14.3.1 build 51216

Many Thanks!

Mike

1 answer

From your input, it sounds like you stumbled onto this bug: https://jira.atlassian.com/browse/BAM-16341


The theory is that the plan branch you are referring to has probably been removed in the past as part of the plan branch cleanup process in Bamboo and you are now trying to re-create it, but there's a problem with doing this: when the plan branch is removed as part of the expiry process, Bamboo populates the DETECTED_DELETION_DATE column in the VCS_BRANCH table in the database with the date from the first time it got removed. That information is NOT erased when you re-create the plan branch, so next time the plan branch expiry process kicks in, it looks at that table and thinks that this plan branch should've been removed already, so it removes the branch (because it thinks it's doing the right thing).


The Workaround section from the bug report explains how to delete the DETECTED_DELETION_DATE data directly from the database for a particular plan branch, so that you can prevent it from being deleted again. I know this is not a feasible option to do every time.


Thus, to prevent this from happening, we recommend users to uncheck the "Clean up plan branch automatically" option when manually creating the plan branch in Bamboo (as mentioned by one of the users in this comment) until the bug is fixed. This way, the plan branch won't get removed as part of the expiry process anymore.


Hope it helps.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
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,096 views 0 5
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot