Skip to content
Permalink
Browse files
[JENKINS-18922] Trying to make this error (missing maven-plugin) nonf…
…atal during startup.

May not suffice: a fatal error may simply be thrown later on.
  • Loading branch information
jglick committed Nov 6, 2013
1 parent dec369e commit 37d2575f6b11234a37d45695c05e4f95a6faefa2
Showing with 10 additions and 2 deletions.
  1. +1 −1 core/src/main/java/hudson/model/UpdateCenter.java
  2. +9 −1 core/src/main/java/hudson/model/listeners/SaveableListener.java
@@ -1544,7 +1544,7 @@ public int compareTo(PluginEntry o) {
*
* This has to wait until after all plugins load, to let custom UpdateCenterConfiguration take effect first.
*/
@Initializer(after=PLUGINS_STARTED)
@Initializer(after=PLUGINS_STARTED, fatal=false)
public static void init(Jenkins h) throws IOException {
h.getUpdateCenter().load();
}
@@ -30,6 +30,8 @@
import hudson.XmlFile;
import jenkins.model.Jenkins;
import hudson.model.Saveable;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
* Receives notifications about save actions on {@link Saveable} objects in Hudson.
@@ -75,7 +77,13 @@ public void unregister() {
*/
public static void fireOnChange(Saveable o, XmlFile file) {
for (SaveableListener l : all()) {
l.onChange(o,file);
try {
l.onChange(o,file);
} catch (ThreadDeath t) {
throw t;
} catch (Throwable t) {
Logger.getLogger(SaveableListener.class.getName()).log(Level.WARNING, null, t);
}
}
}

0 comments on commit 37d2575

Please sign in to comment.