我最近一直在研究Buildbot,但缺乏良好的文档和示例配置使得很难理解Buildbot的常规用法。
根据Buildbot手册,每个构建主机负责一个代码库。这意味着想要在10个项目上使用Buildbot的公司需要维护10组不同的Buildbot安装(主从配置、开放端口、输出网站等)。这真的是惯常的做法吗?我是否错过了能够创建易于维护和监控的混搭选项?
谢谢!
我最近一直在研究Buildbot,但缺乏良好的文档和示例配置使得很难理解Buildbot的常规用法。
根据Buildbot手册,每个构建主机负责一个代码库。这意味着想要在10个项目上使用Buildbot的公司需要维护10组不同的Buildbot安装(主从配置、开放端口、输出网站等)。这真的是惯常的做法吗?我是否错过了能够创建易于维护和监控的混搭选项?
谢谢!
test_python26_linux.addStep(ShellCommand, name = "update pygr",
command = ["/u/opierce/PygrBuildBot/update.sh","000-buildbot","ctb"], workdir=".")
000-buildbot和ctb是额外的参数,用于指定从哪个分支和仓库拉取信息。update.sh脚本是我编写的,用于避免不相关的git问题。如果您想运行不同的项目,可以编写类似以下内容的脚本:
builder1.addStep(ShellCommand, name = "update project 1",
command = ["git","pull","git://github.com/your_id/project1.git"], workdir=".")
(the rest of builder1 steps)
builder2.addStep(ShellCommand, name = "update project 2",
command = ["git","pull","git://github.com/your_id/project2.git"], workdir=".")
(the rest of builder2 steps)