未验证 提交 0107b8fa 编写于 作者: D Daniel Beck 提交者: GitHub

Merge pull request #3522 from jsoref/JENKINS-52159

JENKINS-52159: Queue.maintain - tolerate misbehaving sorter.sortBuild…
......@@ -1567,8 +1567,15 @@ public class Queue extends ResourceController implements Saveable {
}
}
if (s != null)
s.sortBuildableItems(buildables);
if (s != null) {
try {
s.sortBuildableItems(buildables);
} catch (Throwable e) {
// We don't really care if the sort doesn't sort anything, we still should
// continue to do our job. We'll complain about it and continue.
LOGGER.log(Level.WARNING, "s.sortBuildableItems() threw Throwable: {0}", e);
}
}
// Ensure that identification of blocked tasks is using the live state: JENKINS-27708 & JENKINS-27871
updateSnapshot();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册