TeamCity 中 TFS 路径的正确构建触发规则
我试图仅在对主干而不是分支的提交上触发构建。当我在任何 VCS 提交上进行构建触发器时,它工作正常,但我似乎无法正确地使规则仅在任何用户提交到 MAIN/源时触发。执行此操作的正确规则声明是什么?
I am trying to trigger a build only on commits to the trunk rather than the branches. When I make the build trigger on any VCS commit it works fine but I cannot seem to get the rule right to trigger only on commits to MAIN/source by any user. What is the proper rule declaration to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有两种方法可以做到这一点。如果您不想从其他分支构建,则可以编辑 VCS Root 并清除“分支规范”字段。
如果您希望能够从其他分支进行构建,请创建一个 VCS 触发器上的分支过滤器。试试这个:
There are two ways to do this. If you don't want to build from other branches, you can edit the VCS Root and clear out the "Branch specification" field.
If you want to be able to build from other branches, you create a Branch Filter on your VCS Trigger. Try this: