7

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 trigger so it builds for every git push. But I don't want it to build when someone pushes to the development branch.

I have tried playing with the branch filter in the trigger, but either features and development build on push, or none of them do.

I'm using TC 9.1.1

4

2 回答 2

11

尝试以下设置:
默认分支:refs/heads/development
分支规范:+:refs/heads/feature/*

VCS 触发分支过滤器:

+:*  
-:<default>
于 2015-09-17T13:52:23.510 回答
0

我们正在使用 TC 2017.2 并且遇到了同样的问题。我们可以禁用自动触发,但您仍然可以手动启动它,这很烦人,因为它会使构建代理无所事事。

然后我们发现我们可以选择禁用功能分支的实际构建。如果你去Version Control Settings那里有一个Default Branch Settings部分。

更多信息在这里

于 2018-11-19T07:33:52.647 回答