Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,685
Community Members
 
Community Events
165
Community Groups

Disable planbranch cleanup in database for specific branches

Edited

As I've learned so far (Planbranch cleanup option in database), the planbranch setting "Clean up plan branch automatically" is stored in the Bamboo database in the table BUILD_DEFINITION (column: XML_DEFINITION_DATA):

<cleanup><disabled>true</disabled></cleanup>

 With the column being an NTEXT column, 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 an easier way to disable the setting "Clean up plan branch automatically" (i.e. the XML_DEFINITION_DATA value) automatically for specific branch types (i.e. bugfix/)?

Both two expiry settings need to be taken into consideration:

  • cleanup due to git delete branch
  • cleanup due to branch inactivity

Is the only chance to look for bugfix/ branches in the tables and set disabled to true in the XML?

 

1 answer

1 accepted

0 votes
Answer accepted

Hello @HeWi,

Unfortunately, a programmatic way to enable/disable the branch cleanup is not available in Bamboo.

Please check the following feature request for more details. Make sure to follow and vote it so you'll get notified of any future implementations of it. You can even add your specific case as a comment; that will help the developers prioritise it and consider it as a candidate.

 

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

Hello @Eduardo Alvarenga ,

that's what I did guess, but very interesting to see, that others have already thought about the same problem, thanks for the link to the feature request. Unfortunately I don't have much hope, only 7 Watchers, created in 2017 already, not many responses, but nonetheless I did add a comment.

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

953 views 3 8
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