简体   繁体   English

Hudson + Poll SCM - 首先建立上游项目?

[英]Hudson + Poll SCM - build upstream projects first?

We have a bunch of maven2 projects in Hudson, all set to Poll SCM at the same time. 我们在Hudson有一堆maven2项目,所有项目都同时设置为Poll SCM。

The problem is that there doesn't seem to be an order in the way it polls and builds the projects. 问题是,它在轮询和构建项目的方式上似乎没有顺序。 Ideally it would check the upstream projects first. 理想情况下,它会首先检查上游项目。 I could set the poll SCM schedule to account for this, but this seems error-prone as new projects are added. 我可以设置轮询SCM计划来解决这个问题,但这似乎容易出错,因为添加了新项目。

Right now, sometimes it checks a downstream project "X" first, finds a change and builds with an error. 现在,有时它首先检查下游项目“X”,找到更改并构建错误。 Then when the upstream project "Y" is checked/built, this triggers a build of project X, which is successful. 然后,当检查/构建上游项目“Y”时,这将触发项目X的构建,这是成功的。 Creating some pointless error notifications. 创建一些无意义的错误通知。

在“高级项目选项”下,选中“上游项目正在构建时阻止构建”

Since 1.323 there is an advanced maven build option block-when-upstream-building. 从1.323开始,有一个高级的maven构建选项块 - 在上游构建时。 Maybe that could be helpful? 也许这可能会有所帮助?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM