Skip to content

Commit

Permalink
[JENKINS-18922] Trying to make this error (missing maven-plugin) nonf…
Browse files Browse the repository at this point in the history
…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 37d2575
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/UpdateCenter.java
Expand Up @@ -1544,7 +1544,7 @@ public static class PageDecoratorImpl extends PageDecorator {
*
* 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();
}
Expand Down
10 changes: 9 additions & 1 deletion core/src/main/java/hudson/model/listeners/SaveableListener.java
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit 37d2575

Please sign in to comment.