mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-15 04:52:20 +00:00
[JENKINS-50217] Defend against buggy ComputerListener.onConfigurationChange implementations.
This commit is contained in:
1 file changed
+7
-2
@@ -227,8 +227,13 @@ public abstract class AbstractCIBase extends Node implements ItemGroup<TopLevelI
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user