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

Plan branching how to checkout to a feature branch for non-default repo

Ed Dev March 7, 2018

I setup a plan where I added 2 repos, 1 has to be a default repo and the other 1 has to be a non-default repo. I set triggers on both repos to build on code change. When I commit to a feature branch in the non-default repo, it triggers a build, however it checks-out the master branch of the non-default repo. I don't have any problems with the default repo as it checks out to any branch that had a code change. Is there a way to make non-default repos check out to any branch (not just master)?

1 answer

0 votes
Omar Herrera
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 7, 2018

Hi @Ed Dev you can achieve this with a custom script for checkout the second repository, you can use bamboo build variables and found the new feature branch for the default repo and with this trick you can calculate the checkout.

Cheers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events