[英]TeamCity + GitHub (Build Config per branch)
TeamCity Setup: TeamCity设置:
Project(CenterProj) 项目(CenterProj)
VCS(GitHub) Setup (Repo: CenterProj): VCS(GitHub)设置(回购:CenterProj):
Site Setup: 网站设置:
I have yet to figure out how I can have 1 VCS Root connection going to the CenterProj Repo, and then trigger the 2 build configs based on commit/merge to their individual branches. 我还没有弄清楚如何将1个VCS Root连接到CenterProj Repo,然后根据对它们各自分支的提交/合并触发2个构建配置。
So far I'm getting continual "Pending" builds waiting on dev when I commit/merge to master or pending in Master when I commit/merge into Dev. 到目前为止,当我提交/合并到master时,我将获得持续的“ Pending”构建等待开发,而当我提交/合并到Dev中时,将在Master中等待。
Suggestions? 有什么建议吗?
You need to specify a trigger rule for each build configuration, and in there limit which branch will trigger your build. 您需要为每个构建配置指定一个触发规则,并限制在哪个分支中触发您的构建。 As far as the "Pending" changes, they will appear on top of both build configuration because you are sharing the same VSC root, no need to worry about that.
至于“挂起”更改,它们将出现在两个构建配置的顶部,因为您共享的是同一VSC根目录,无需担心。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.