如何正确配置TeamCity的Feature Branch CI [英] How Do I Properly Configure Feature Branch CI with TeamCity

查看:370
本文介绍了如何正确配置TeamCity的Feature Branch CI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试设置TeamCity以建立所有分支机构不是我的团队的主要分支机构。我一直没有得到这个工作,只有得到这个与默认分支功能。我们的仓库有以下分支:master,daily-build,Branch-Alex和其他名称相似的分支。我非常希望这个构建配置能够在不包含主服务器的情况下运行。以下是我的配置图:


  1. VCS Root:


  • 触发设置:


    1. 当前编译配置:



    TL:DR - 是否有更好的教程来设置团队城市的特色分支建设?

    奖励积分 - 如何让名称只是分支名称,而不是ref / heads / Daily-build? 解决方案

  • 所以,我的问题是一个简单的错字:

    +:ref / heads / * 应该写成 +:refs / heads / *


    I am currently trying to set up TeamCity to build all the branches which are not my team's main branches. I have had trouble getting this to work, and have only gotten this to function with the default branch. Our repository has the following branches: master, Daily-build, Branch-Alex, and others with similar names. I pretty much want this build configuration to run on pushes that do not include master. Here are some pictures of my configuration:

    1. VCS Root:

    1. Trigger Settings:

    1. Current Build Config:

    TL:DR - Is there a better tutorial for setting up feature branch building in team city?

    Bonus Points - How do I make the names just be the branch names rather than the "ref/heads/Daily-build"?

    解决方案

    So, my problem was a simple typo:

    +:ref/heads/* should be written as +:refs/heads/*

    这篇关于如何正确配置TeamCity的Feature Branch CI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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