【问题标题】:Teamcity / Bitbucket - Build a Pull Requests merge commit before mergeTeamcity / Bitbucket - 在合并之前构建一个拉取请求合并提交
【发布时间】:2021-01-28 08:30:45
【问题描述】:

我已将 Bitbucket 服务器和 Teamcity 配置为 CI。

Teamcity 还构建所有提交,效果非常好。

现在我想在合并拉取请求之前构建将由拉取请求生成的“合并提交”。

【问题讨论】:

标签: continuous-integration teamcity bitbucket pull-request


【解决方案1】:

bitbucket 为每个创建的拉取请求创建 pull-requests/<pr number>/from 分支。

所以你可以添加到 vcs 根分支规范规则“只获取 PR 分支”

然后添加 vcs 触发器以在 pull-request 中的每个新提交时自动运行它

【讨论】:

  • 这将构建拉取请求源分支的头部,而不是生成的合并代码
猜你喜欢
  • 1970-01-01
  • 2013-11-27
  • 1970-01-01
  • 2014-06-01
  • 1970-01-01
  • 2013-02-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多