【问题标题】:ONLY Build the latest commit in buildbot仅在 buildbot 中构建最新提交
【发布时间】:2015-04-30 08:31:32
【问题描述】:

我已经使用 Git 为我的项目设置了 buildbot。我发现如果我的存储库中有多个提交,buildbot 从站将构建并运行所有更改,而不仅仅是最新的提交。有什么方法可以将 buildbot 设置为仅构建我的最新提交?

谢谢。

【问题讨论】:

  • 尝试配置 buildbot 仅构建 git 标签。例如,v.****

标签: git buildbot


【解决方案1】:

Merging Build Requests 是典型的解决方案。

【讨论】:

  • 大卫,1. 当我添加“c['collapseRequests'] = True”和“buildbot reconfig master”时,日志显示“Unknown BuildmasterConfig key collapseRequests”;或 2. 当我在 BuilderConfig 中添加 collapseRequests 时,使用“c['builders'].append(BuilderConfig(..., collapseRequests=True))”,错误显示“__init__() got an unexpected keyword argument 'collapseRequests' (traceback在日志文件中)”。你有什么建议吗?谢谢
  • 对不起,我把你送到了最前沿。在发布的版本中,正确的参数是 'mergeRequests' 我已经编辑了上面的答案。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-09-29
  • 1970-01-01
  • 1970-01-01
  • 2020-01-27
  • 1970-01-01
  • 1970-01-01
  • 2017-04-11
相关资源
最近更新 更多