Exclude master from feature branch builds

We have two build configurations for CI: one that builds and deploys master and another that builds and deploys feature branches. These get deployed to two different envornements so thus the two build configurations. We just switched over to using the new feature branch configuration in TC 7.1+ but we can't seem to exclude master even though it looks like we should be able to. So when we commit to master we end up with two builds, one for each build configuration. I've tried a few branch specifications and nothing works. I'm thinking this should work but no dice:


I've also tried entering other filters for excluding or including but it doesen't seem to affect the branches listed on the build config. It's almost like "+:refs/heads/*" is hard coded somewhere and it doesen't matter what you set the branch specification to.

We are on TC 7.1.4 (build 24331) and are hitting a git repo.

Any help would be much appreciated.


Comment actions Permalink

Default branch cannot be excluded for the moment, see http://youtrack.jetbrains.com/issue/TW-23395. Current workaround is to create some other branch in repository, do not commit anything in it and use it in configuration where you don't need default.

Comment actions Permalink

Thanks for the info Pavel. I'll give that a shot. Would really be great if that was functionality was built in at some point.


Please sign in to leave a comment.