如何允许多个同名的 Hudson 作业运行
我有一份 Hudson 工作,有 2 项任务。 如果我启动任务 A,然后在任务 A 仍在运行时启动任务 B,则任务 B 在任务 A 完成之前不会开始运行。 我没有锁定这项工作(即“锁定”选项未勾选)。 如何启用此作业以便任务 A 和任务 B 同时运行?
I have a Hudson job with 2 tasks. If I start task A and then start task B while task A is still running, then task B will not start running until task A has finished. I have no locking on this job (i.e. "Locks" option is not ticked). How do I enable this job so that task A and task B will run simultaneously?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
批处理任务插件将任务视为队列中的基本步骤,因此目前我怀疑您是否可以让它们同时运行。
如果您希望两个任务同时运行(一直?),什么时候不只是将这些任务作为外部脚本,然后创建一个任务来同时运行它们?
The Batch Tasks plugin treats tasks as basically steps in a queue so, at present, I doubt you can have them run simulataneously.
If you want two tasks to run simultaneously (all the time?), when not just put those tasks as external scripts and then create a task to run them both at the same time?
正常构建和批处理作业对工作区有隐式锁定 - 您不希望构建在批处理作业中间启动并清除工作区,因此这是有道理的。 在运行批处理作业时,您可能会主张在共享工作区锁定和独占工作区锁定之间进行选择。
正如您所注意到的,目前它始终是排他性的。
Normal builds and batch jobs have an implicit lock on the workspace - you wouldn't want the build to start in the middle of your batch job and wipe out the workspace, so this make sense. You could argue for a selection between shared and exclusive workspace locking when running the batch jobs.
At present, it's always exclusive, as you've noticed.