buildbot 强制构建忽略存储库
当我单击 builbot URL 的“builders”链接并强制构建时,我在表单上指定的 git 存储库将被忽略;构建器正在使用最初构建/配置的存储库。这是一个已知问题吗?有什么方法可以强制构建器使用新的存储库吗?我在 Ubuntu 10.04 上运行 0.8.4。感谢您的任何帮助。
When I click on the 'builders' link of builbot URL and force a build, the git repository I specify on the form is getting ignored; the builder is using the repository it was originally built/configured with. Is this a known problem ? Is there some way to force the builder to use the new repo ? I'm running 0.8.4 on Ubuntu 10.04. Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个深思熟虑的选择,因为创建源标记的潜在方法有多种,但都是不安全的。因此,如果 buildbot 使用传递给它的任何存储库 URL,那么有人可能会在从属设备上执行任意代码。
也就是说,很容易获得您想要的行为。最简单的是指定
repourl=Property('repository', '')
它将使用构建的“存储库”属性(从源标记初始化)或默认存储库(如果未指定)。 (
Property
是从buildbot.process.properties
导入的)This is a deliberate choice, as there various potential ways of creating a source stamp, that are insecure. Thus, someone could potentially execute arbitrary code on the slave, if buildbot used whatever repository URL passed into it.
That said, it is easy to get the behavior you want. The simplest is to specify
repourl=Property('repository', '<default-repository>')
which will use the 'repository' property of the build (which gets initialized from the source stamp) or the default repository, if none is specified. (
Property
is imported frombuildbot.process.properties
)