gpt4 book ai didi

buildbot - 如何在公司中扩展 buildbot

转载 作者:行者123 更新时间:2023-12-04 01:08:48 24 4
gpt4 key购买 nike

我最近一直在研究 buildbot,由于缺乏良好的文档和示例配置,因此很难理解 buildbot 的常用用法。

根据 buildbot 手册,每个 buildmaster 负责 1 个代码库。这意味着想要在 10 个项目上使用 buildbot 的公司需要维护 10 组不同的 buildbot 安装(主从配置、开放端口、带有输出的网站等)。这真的是做事的方式吗?我是否缺少创建易于维护和监控的混搭的选项?

谢谢!

最佳答案

在我的工作场所,我们使用 Buildbot 在多个架构和 Python 版本上测试单个程序。我使用一个构建大师来监督大约 16 个奴隶。每组从属从不同的 repo 中提取并针对 Python 2.X 进行测试。

根据我的经验,配置单个构建主机来运行项目的混搭是很容易的。这可能不是一个好主意,因为瀑布页面(构建从站报告结果的地方)可能会因多个从站而变得非常拥挤。如果您习惯于滚动长瀑布页面,那么这将不是问题。

编辑:

master.cfg 中的更新命令:

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)

这两个项目不必相关。 Buildbot 为每个构建器创建一个目录并运行该目录中的所有步骤。

关于buildbot - 如何在公司中扩展 buildbot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1219757/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com