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 votes

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
Community showcase
Published 11 hours ago in Statuspage

194 years of downtime: looking back on incident data from 2018

Statuspage customers logged more than 194 years of collective incidents in 2018. That’s a whopping 87% increase from the  104 years logged in 2017 , and we aren’t even through December yet....

23 views 0 3
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