Current Behavior of Plan Branches in Bamboo

I would like to know a few things here about the current behavior of plan branches in bamboo for latest version.
1) With auto branch enabled setting, if someone manually deletes the plan branch and re-creates it within the plan , will that be automatically cleaned up by bamboo in sometime. Please note the corresponding Bitbucket branch is still intact and nothing has been done there.

2) Every time that one does as mentioned above, i believe a new branch-id is created for the plan branch even if the Bitbucket branch is the same and has been there ever. Having said so, does bamboo just look after the branch details in accordance with the Bitbucket repository like detected_deletion_date, etc or how is it recorded within bamboo database.

3) With auto branch setting after a certain period of inactivity, the branches automatically gets cleaned up from the plan, and for any later commits to the branch we have to manually re-add the branch in the plan for the builds to work. I wonder if these branches again get auto cleaned up next time that bamboo does a auto clean activity or they remain active in the plan as long as their corresponding Bitbucket branches have some level of activity going on.

All these questions are to address how bamboo tracks the plan branches. Because as long as the branch in Bitbucket has not changed/deleted, the plan branches don't have any detection_deletion_date and if they are manually deleted or get deleted and re-added as per #3, how does bamboo then track those branches.Does bamboo still refer to old deletion date or how everything works.

Any help here would be greatly appreciated.

Cheers,

Ashley

1 answer

0 vote
Elias Zeidan Atlassian Team Jun 14, 2017

Hi Ashley,

Thanks for your questions!

  1. If the plan Branch is deleted and then recreated, the branch will not be automatically cleaned up until it hits the inactivity threshold defined in the branch configuration.

  2. You are correct, a new branch ID is created in this scenario.
    Yes, Bamboo will refer to Bitbucket for the detected_deletion_date and similar fields. These are populated when we receive a Branch Deleted Event from Bitbucket.

  3. Given items 1 and 2, we would show the newly re-added branch as a new object, which would have its own deletion date field. This will not trigger the cleanup, and it will remain active as long as the linked Bitbucket branch is active.

I hope these help!

Cheers,

Elias Zeidan
Atlassian Support

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