mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
[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:
1 parent
40687bdc22
commit
4ed803cea2
3 files changed
+34
-8
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user