如何获取TeamCity构建触发器过滤器来构建功能分支但不是默认分支 [英] How to get TeamCity Build trigger filter to build feature branches but not default branch

查看:294
本文介绍了如何获取TeamCity构建触发器过滤器来构建功能分支但不是默认分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Team City构建版本来构建功能分支:

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

默认分支:refs / heads / development
分支规范:refs / heads / feature / *

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

我有一个vcs触发器,因此它可以为每个git推动构建。但是我不希望它在有人推送到开发分支时进行构建。

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.

我使用TC 9.1.1

I'm using TC 9.1.1

推荐答案

尝试以下设置:

默认分支:refs / heads / development

分支规格:+:refs / heads / feature / *

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

VCS触发分支过滤器:

VCS trigger branch filter:

+:*  
-:<default>

这篇关于如何获取TeamCity构建触发器过滤器来构建功能分支但不是默认分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆