【发布时间】:2014-07-11 03:57:03
【问题描述】:
我在 TeamCity 中有以下设置:
构建配置设置 -> 版本控制设置 -> VCS Root:
- 默认分支:remote-run/my-feature
- 分支规范:remote-run/my-feature
当从远程运行/我的功能分支从 Github 获取提交时,这会完美触发,但是当我尝试让它通用(所有分支都推送到远程运行)时:
- 默认分支:remote-run/* OR refs/heads/remote-run/* OR +:refs/heads/remote-run/* OR -:refs/heads/remote-run/*
- 分支规范:remote-run/* OR refs/heads/remote-run/* OR +:refs/heads/remote-run/* OR -:refs/heads/remote-run/*
没有被触发。
有谁知道推送到remote-run/ANYTHING_HERE 时需要什么分支规范才能触发?
谢谢, 艾诺特
事实上,如果我指定如下内容,它会无法连接到 Github 存储库:
-:refs/heads/*/pull 或 -:refs/heads/*/merge 或 +:refs/heads/*/pull 或 +:refs/heads/*/merge 在分支规范中,即使我的 Github 存储库中存在有效的拉取请求。
【问题讨论】:
-
您使用的是 TC8.x 吗? “
remote-run”是远程仓库的名称,还是实际分支层次结构的一部分? -
正如 TeamCity 在这里描述的 (confluence.jetbrains.com/display/TCD7/Branch+Remote+Run+Trigger) 我使用“git push origin +HEAD:remote-run/my_feature”命令在 Github 上推送我的提交。
标签: git github continuous-integration teamcity