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

后端 未结 2 782
情深已故
情深已故 2021-02-09 08:06

I\'ve created a Team City build to build the feature branches:

Default Branch: refs/heads/development Branch Specification: refs/heads/feature/*

I have a vcs tri

相关标签:
2条回答
  • 2021-02-09 08:27

    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

    0 讨论(0)
  • 2021-02-09 08:33

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

    VCS trigger branch filter:

    +:*  
    -:<default>
    
    0 讨论(0)
提交回复
热议问题