Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3471 from jglick/robustness-JENKINS-50217
[JENKINS-50217] Defend against buggy ComputerListener.onConfigurationChange implementations
  • Loading branch information
jglick committed Jun 1, 2018
2 parents 0e5fc86 + c8b2f52 commit 6f91299
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/main/java/hudson/model/AbstractCIBase.java
Expand Up @@ -227,8 +227,13 @@ public void run() {
killComputer(c);
}
getQueue().scheduleMaintenance();
for (ComputerListener cl : ComputerListener.all())
cl.onConfigurationChange();
for (ComputerListener cl : ComputerListener.all()) {
try {
cl.onConfigurationChange();
} catch (Throwable t) {
LOGGER.log(Level.WARNING, null, t);
}
}
}

}

0 comments on commit 6f91299

Please sign in to comment.