How can I monitor automatic branch detection in bamboo?

I've configured automatic branch detection. I've pushed to a branch. I think I've waited 5 minutes and not seen anything. Is there a way to see a log?

For that matter, will it notice a mere push to an existing branch, or does it need to be a whole new branch?

4 answers

1 accepted

1 vote
Accepted answer

It has to be a new branch. You have to create your existing branches manually in Bamboo UI.

Well, the auto-detector has yet to auto-detect a branch in git, even a new one. Can you help me diagnose this?

I too am having issues with Bamboo not detecting new branches as they are added to the repository. Where can I look for errors about this? I have been tailing the catalina.out log and nothing stands out there.

1 vote

You can enable DEBUG logging on com.atlassian.bamboo.plan.branch.BranchDetectionServiceImpl (in Administration/Log Settings)

Thank you for the prompt reply. So it appears that both legacy plans and newly created plans are detecting properly. I can tell that for testing purposes Bamboo did notice my new branch in the repo. However it spit out this error saying that the branch it detected did not match my given pattern. Which is confusing because under the branches tab in the plan my pattern is the following: a_release-*

Any ideas?

2014-01-31 11:45:04,738 DEBUG [5-BranchDetectionBackgroundThread:pool-9-thread-1] [BranchDetectionServiceImpl] VCS branch VCS Branch [a_release-1.0.0] is known to Bamboo. No action will be taken.

2014-01-31 11:45:04,738 DEBUG [5-BranchDetectionBackgroundThread:pool-9-thread-1] [BranchDetectionServiceImpl] VCS Branch 'VCS Branch [a_release-1.0.2]' does not match the given pattern. It will not be created.

2014-01-31 11:45:04,754 DEBUG [5-BranchDetectionBackgroundThread:pool-9-thread-1] [BranchDetectionServiceImpl] Finished detecting branches for plan GAT-GBIL

That pattern is a regular expression, not a wildcard. So, your pattern would match:






Try defining the pattern as a_release-.*

Outstanding thank you for the reply! That works!!! Thank you!

I should also add we are using 5.6.1

The bamboo documentation states that it supports prefixes as well. But, I had problems using the documented prefix method.

 If you use a naming convention where all branches that you want tested start with "feature-*", for example, then Bamboo can be configured to only create plan branches that match that prefix. (You can use regular expressions in these configs, too).

Well, this one happens to us as well.
We have a big project with around 30 plans.
The source code is kept in git (managed by stash)
On a given release, we automatically create a release branch.
Out of 30 plans (configured the same - all were created by cloning the first one) only 4 have automatically detected the release branch.

For all other, it seems I have to go to each plan and add the new branch from git to bamboo as well.

Are there any logs we can look for ?
Is there a way to force the auto-detect to run on all plans in a given project ?
(The option shown in ) does not seem to work properly.

I would like to add that I too also created many plans that were cloned off off a previous one. I haven't tried with a manually created plan, as the need for auto branch detection on these repo's are not there at present. I wonder if the fact that these plans were cloned off an older parent plan at sometime could be an indicator to the start of the issue?

I'm noticing this as well with Bamboo OnDemand. If I click the "Add Branch" button under branches, I can see the branch there, and then suddenly it builds. But new branches on a cloned plan don't ever get picked up. I am going to try a fresh plan now and see if that works.

Alright gentlemen I've tried with projects copied from various versions older than Bamboo5.0. In addition to out making a new project in the new Bamboo5.3. For some reason I cannot get Bamboo to automactically detect the creation of a new branch. I instead have to go in and configure it manually. Is there a logger I can turn on, and get some useful information to help troubleshoot this?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

972 views 3 9
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