提交 162f1b19 编写于 作者: A abayer

[FIXED HUDSON-5023] Subsequent publishers should still run even if an earlier...

[FIXED HUDSON-5023] Subsequent publishers should still run even if an earlier publisher throws an exception

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@24433 71c3de6d-444a-0410-be80-ed276b4c234a
上级 0dec5c0d
......@@ -560,7 +560,11 @@ public abstract class AbstractBuild<P extends AbstractProject<P,R>,R extends Abs
protected final void performAllBuildStep(BuildListener listener, Iterable<? extends BuildStep> buildSteps, boolean phase) throws InterruptedException, IOException {
for (BuildStep bs : buildSteps) {
if ((bs instanceof Publisher && ((Publisher)bs).needsToRunAfterFinalized()) ^ phase)
perform(bs,listener);
try {
perform(bs,listener);
} catch (Exception e) {
Logger.getLogger(getClass().getName()).warning("Publisher " + bs.getClass().getName() + " skipped due to error: " + e.getMessage());
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册