[JENKINS-50217] Defend against buggy ComputerListener.onConfigurationChange implementations.

This commit is contained in:
Jesse Glick committed 2018-06-01 12:59:01 -04:00
1 parent a02b1cafbf
commit c8b2f52895
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);
}
}
}
}