Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

can i add a trigger on a branch in a repo for which the branch name changes every release

Rishi.Randhir July 5, 2018

hi, 

I have my automation written in bamboo which executes the smoke tests on a build.

Now i want to automate it further ie. whenver there is a commit on the branch, the code will be downloaded and built and then the tests will be run.

The problem: the problem is that, whenever a new release is scheduled a new branch is created (same format but different name ex:ABC1 and ABC2) , so i cannot have a trigger on a branch since it changes the name. I cannot add a trigger on the repo since there are other checkins happening like other features.

To achieve : i want to make this generalised so that either I can compare the branch name with a regex and add a trigger on these branches

OR just a generalised way to achieve this ?

 

THanks for your response

1 answer

0 votes
Rishi.Randhir July 5, 2018

I just saw the "branches create a plan branch " section can have a regex , when i select "When new branch in repository is created and matches expression" can i use this ?? i will try it for sure.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events