Hudson ci 是否支持在同一台机器上并行构建?
我的项目需要很长时间才能构建(~3h),并且编译器没有有效利用四核 CPU。 该项目还需要每个版本的多个构建来支持不同的配置。
Hudson 可以支持同时构建同一项目的多个实例吗?
My project takes a long time to build (~3h) and the compiler is not making effective use of the quad-core cpu.
The project also requires multiple builds of each version to support different configurations.
Can hudson support building several instances of the same project simultaneously?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该功能继续被标记为“Beta”,因为我们知道在某些情况下,您可能会发现使用并发构建发生冲突,例如 maven 构建可能会导致问题,阻止下游构建应该会有所帮助
从本质上讲,如果您能够运行这些并行工作,那么该功能应该没有问题。
也就是说,如果您能够使用最新的 Maven 3 支持(在 Hudson 2.1.0 中),您可以使用实验性线程支持来并行化您的构建
The feature continues to be marked as 'Beta' as we are aware that there are some situations in which you might find a conflict using concurrent builds eg maven builds might cause issues, blocking downstream builds should help
Essentially, if you are able to run these jobs in parallel then you should have no problems with the feature.
That said, if you are able to use the latest Maven 3 support (in Hudson 2.1.0) you could use the experimental threading support to parallelize your build
是的,虽然它仍然标记为测试版,但只需查看项目设置,顶部附近应该是您要查找的条目(“如果需要,执行并发构建(测试版)”您需要配置足够的构建处理器)该机器并确保多个构建不会相互干扰(这可能是最难的部分)
Yes, though it's still marked as beta, just have a look at the project settings, near the top should be the entry you're looking for ("Execute concurrent builds if necessary (beta) " You need to have enough build processors configured on that machine and make sure multiple builds don't interfere with each other (which may be the hardest part)