How can I find branch plans that are not "clean up automatically"?

We have automatic branch creation enabled (Bamboo 5.9.1).  We want all these branches to always leave the "Clean up branch automatically" box checked.  However, sometimes for whatever reason some of our branches have that box unchecked.  Then they just sit around forever.

We have 30+ plans and 100+ branches per plan: pointing and clicking through them all to find which ones might be misconfigured is clearly a non-starter.

How can I find these branch plans more easily?  I even have access to the SQL database backend directly (it's mysql) and can run queries on it, but I can't understand the schema to find what I want.  I would of course use the web interface to fix the incorrect configuration, not the database, but if the only way to find the incorrect configurations is via a query I can do that.


2 answers

1 accepted

Aha!  It's BUILD_DEFINITION, but this query does what I need (mysql database):

select FULL_KEY from BUILD where BUILD_ID IN (select BUILD_ID from BUILD_DEFINITION where EXTRACTVALUE(XML_DEFINITION_DATA, '/configuration/branchConfiguration/cleanup/disabled') = 'true');


0 vote

You need to run selects on BUILDDEFINITION table, the xml there stores this information.

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