提交 7f7db958 编写于 作者: R Ryan Campbell

[JENKINS-26643] DescribableList.buildDependencyGraph should catch RuntimeException

上级 d10b9fab
......@@ -46,6 +46,8 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Persisted list of {@link Describable}s with some operations specific
......@@ -210,7 +212,11 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
for (Object o : this) {
if (o instanceof DependencyDeclarer) {
DependencyDeclarer dd = (DependencyDeclarer) o;
dd.buildDependencyGraph(owner,graph);
try {
dd.buildDependencyGraph(owner,graph);
} catch (RuntimeException e) {
LOGGER.log(Level.SEVERE, "Failed to build dependency graph for " + owner,e);
}
}
}
}
......@@ -277,4 +283,6 @@ public class DescribableList<T extends Describable<T>, D extends Descriptor<T>>
}
}
}
private final static Logger LOGGER = Logger.getLogger(DescribableList.class.getName());
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册