how to disable master branch in bamboo
Asked Answered
T

1

6

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.

Threecornered answered 27/2, 2014 at 15:2 Comment(0)
C
2

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"

Chondriosome answered 1/8, 2014 at 2:9 Comment(2)
I'm going to test this since I've got the same issue.Chondriosome
Note that I'm using also a branch name filter to only build the release branches. e.g. ^(?!master)integrations/release_([1-9]).*$Chondriosome

© 2022 - 2024 — McMap. All rights reserved.