Bamboo build branches from 'releases' and 'branches' folders

I'm using Bamboo with svn, and some of my projects have a layout like:

  • trunk
  • tags
  • releases: contents are release branches in the form product-x.y.z
  • branches: contents are non-release franches, ie: my_feature, JIRA-123_bla_bla

How can I configure Bamboo to build branches from both releases/.* and branches/.*


2 answers

1 accepted

The regex does not seem to be respected. I have filed a ticket for this at Please follow it for updates




0 vote

Hello Xabier,

The Source Code Checkout task allows checking out from a one directory at a time. So if you want to checkout from 'releases' and from 'branches' in the same build plan, you'd better use a Script task where you can execute the 'svn checkout' twice, one for 'releases' and the other for 'branches'.

However, if you want to use plan branches for 'releases' and 'branches' you can follow these steps:

  1. Go to the Branches tab in the configuration pages for the plan you wish to branch.
  2. Check Create plan branches for branches detected in the repository.
  3. Enter a regular expression like this:

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

Hi Felipe, Plan branches doesn't work if I try {{http://svn/path/to/project}} and this regex: {{(branches|releases)/.*}} I also tried Tried different combinations of the URL (with/without trailing slash) and regex: (branches/.*|releases/.*), with the same results I get an error: "An unexpected error occurred trying to detect VCS branches" and cannot see anything in the logs

Actually, tried again in a new plan, new repo. I get offered "branches, trunk, tags and releases" as my branches in Bamboo, that is, the contents of http://svn/path/to/project, instead of the contents of "branches" and "releases"

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