提交 9977ccda 编写于 作者: M mindless

[FIXED HUDSON-7054] use Node.canTake(Task) in Queue._getBuildableItems so that

Mode.EXCLUSIVE ("only for tied jobs") setting is respected.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33185 71c3de6d-444a-0410-be80-ed276b4c234a
上级 a59814e8
......@@ -593,14 +593,10 @@ public class Queue extends ResourceController implements Saveable {
}
private void _getBuildableItems(Computer c, ItemList<BuildableItem> col, List<BuildableItem> result) {
Node node = c.getNode();
for (BuildableItem p : col.values()) {
Label l = p.task.getAssignedLabel();
if (l != null) {
// if a project has assigned label, it can be only built on it
if (!l.contains(c.getNode()))
continue;
}
result.add(p);
if (node.canTake(p.task) == null)
result.add(p);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册