Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Xabier Davila March 17, 2015

Hi,
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/.*

Thanks

2 answers

1 accepted

0 votes
Answer accepted
Sultan Maiyaki
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2015

The regex does not seem to be respected. I have filed a ticket for this at https://jira.atlassian.com/browse/BAM-15739. Please follow it for updates

 

regards,

Sultan

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 18, 2015

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:
    (releases|branches)/.*

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

Xabier Davila March 18, 2015

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

Xabier Davila March 18, 2015

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
TAGS
AUG Leaders

Atlassian Community Events