Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to disable master branch in bamboo

Tags:

bamboo

I have a bamboo plan with two branches, br1 and br2.

currently, bamboo launches automatically every time there is a commit on the master branch, branch b1 and br2.

I don't want bamboo to launch automatically when there is a commit on branch br1 and br2, but I do not want bamboo to launch automatically when there is a commit on the master branch.

How to achieve this?

(bamboo allows to disables branches, but I don't see how to disable the master branch)

ps: I am aware that bamboo is a bad choice, and we are eventually moving to jenkins. however we still need to use bamboo for a while.

like image 348
David Portabella Avatar asked Feb 27 '14 15:02

David Portabella


1 Answers

The same question has been asked on the Bamboo Q&A forum.

The current selected answer there is:

Andy Davidson:
"Ok so the answer that i found that works (in case anyone else is interested) is to insert the regular expression ^((?!master).)*$ into the "Only Create Branches that Match" field on the branch configuration tab"

like image 128
Kayhadrin Avatar answered Sep 22 '22 08:09

Kayhadrin