【问题标题】:TeamCity fails to trigger on wildcard-specified branchTeamCity 无法在通配符指定的分支上触发
【发布时间】: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


【解决方案1】:

Trigger中使用Branch Filter并将唯一的过滤器设置为

+: remote-run/*

也在分支规范下的版本控制中使用

+:( remote-run/*)

我也有类似的问题,并按照上面给出的方法解决了。 我想这也能解决你的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 2014-11-18
    相关资源
    最近更新 更多