[JENKINS-36666] Defend against some fatal startup errors (#2453)

* [JENKINS-36666] Properly report the reason for a failed call to Task.getDisplayName.

* [JENKINS-36666] Even without passing fatal=false to @Initializer, recover gracefully from a LinkageError in a task.

* Comment.
This commit is contained in:
Jesse Glick authored and Oleg Nenashev committed 2016-07-20 14:55:42 +03:00
1 parent 40687bdc22
commit 4ed803cea2
3 files changed
+34 -8

No files matched your search

+1 -1
View File
@@ -465,7 +465,7 @@ public abstract class PluginManager extends AbstractModelObject implements OnMas
if(p.isActive())
activePlugins.add(p);
}
} catch (CycleDetectedException e) {
} catch (CycleDetectedException e) { // TODO this should be impossible, since we override reactOnCycle to not throw the exception
stop(); // disable all plugins since classloading from them can lead to StackOverflow
throw e; // let Hudson fail
}