目前 Buildbot 不支持多个存储库。如果需要这一点,则需要运行单独的 Buildbot 实例。
我仍然很好奇是否有人想出了一个创造性的解决方法来让这个功能正常工作。
Update
这个答案最近收到了一些反对票,请注意,这个答案适用于 2012 年底/2013 年初发布/使用的 buildbot 版本,可能不适用于未来的版本。
原答案
正如@Macke 所说,buildbot (>= 0.8.x) 支持多个项目/存储库。这是通过如下配置完成的:
# Set configuration to watch the Git repository for possible
# changes. When a change does occur the schedulers will be
# notified with the project data (TestProj).
c['change_source'] = []
c['change_source'].append(
GitPoller(
repourl ='git://github.com/SO/my_test_project.git',
project = 'TestProj',
branch = 'master',
workdir = '/home/buildmaster/repos/TestProj'
)
)
# Set the schedule to run on each change, but only for the project
# specified above via the project information.
c['schedulers'] = []
c['schedulers'].append(
SingleBranchScheduler(
name = "TestProj-master",
builderNames = ['TestProj-master-builder'],
change_filter = ChangeFilter(
project = 'TestProj',
branch = 'master'
)
)
)
您可以看到project
然后在调度程序中再次使用更改源中的参数change_filter
属性以确保调度程序仅响应特定的更改源。这允许您配置多个更改源和多个响应明确选择的更改源的调度程序。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)