How to get TeamCity Build trigger filter to build feature branches but not default branch

旧巷老猫 提交于 2019-12-03 13:36:52
Alina Mishina

Try the following settings:
Default Branch: refs/heads/development
Branch Specification: +:refs/heads/feature/*

VCS trigger branch filter:

+:*  
-:<default>

We are using TC 2017.2 and had the same problem. We could disable the automatic triggering, but you could still start it by hand, which is annoying as it will keep a build agent occupied for nothing.

Then we found out we have the option to disable the actual build of a feature branch. If you go to Version Control Settings there is a Default Branch Settings section.

More info here

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!