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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Bamboo planbranch setting to prevent deletion pendant in database


I wonder where in the Bamboo database the setting "Clean up plan branch automatically" is stored while creating a new planbranch?

(see 2b:

Is it maybe stored in a local database or xml file instead? The scheduler will not delete planbranches having the option deactivated and I would like to understand how Bamboo does make a decision between different plan branches.

1 answer

1 accepted

0 votes
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 16, 2022 • edited

Hello @HeWi

The Plan branch cleanup is defined on the BUILD_DEFINITION table in the database as an XML element within XML_DEFINITION_DATA.


This query might help you locate that information. Works on PostgreSQL.

       BMD.BRANCH_NAME AS "branch_name",
              WHEN CAST((XPATH('//branchConfiguration/cleanup/disabled/text()',CAST(BD.XML_DEFINITION_DATA AS XML)))[1] AS TEXT) = 'true' THEN 'NO'
              ELSE 'YES'


Eduardo Alvarenga
Atlassian Support APAC

Ahh, I see, thanks a lot for your reply @Eduardo Alvarenga , very helpful indeed.

Looking at the column with ntext datatype, it is kind of laborious, if the switch would have to be toggled, I would have to work with temporary tables, doing casting, etc.

Isn't there a simpler way in Bamboo to avoid specific plan branches from getting cleaned up automatically (I don't want to uncheck the planbranches manually)? I have to take two options into consideration:

a) cleanup due to git delete branch

b) cleanup due to branch inactivity

What if I would like to avoid bugfix/ branches from getting cleaned up? Is the only chance to look for bugfix/ branches in the tables and set disabled to true in the XML?

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2022 • edited

Hey @HeWi

Thanks for the feedback. Following the community guidelines please avoid posting different concerns as a follow-up to a question that's been already answered.

If you are satisfied with the first answer please mark it as Accepted and post the next question as a second post and we'll be happy to assist. That eases the web crawler job and enhances indexing (and search) to other users.


Eduardo Alvarenga
Atlassian Support APAC

Hello @Eduardo Alvarenga , thanks for your reply and guideline reference. I've followed your suggestion and created another thread: Way to stop automatic planbranch cleanup for specific branch types 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events