Skip to content

Commit

Permalink
[JENKINS-50217] Defend against buggy ComputerListener.onConfiguration…
Browse files Browse the repository at this point in the history
…Change implementations.

(cherry picked from commit c8b2f52)
  • Loading branch information
jglick authored and olivergondza committed Jun 7, 2018
1 parent b21b0c0 commit 8ade798
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 8ade798

Please sign in to comment.