File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/main/java/org/jenkinsci/plugins/scriptsecurity/scripts Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -534,12 +534,15 @@ public synchronized void load() {
534
534
save ();
535
535
}
536
536
// only call on subsequent load to avoid cycle
537
- if (Jenkins .get ().getInitLevel (). compareTo ( InitMilestone .COMPLETED ) > 0 ) {
537
+ if (Jenkins .get ().getInitLevel () == InitMilestone .COMPLETED ) {
538
538
try {
539
+ LOG .log (Level .FINE , "Reconfiguring ScriptApproval after loading configuration from disk" );
539
540
reconfigure ();
540
541
} catch (IOException e ) {
541
542
LOG .log (Level .WARNING , e , () -> "Failed to reconfigure ScriptApproval" );
542
543
}
544
+ } else {
545
+ LOG .log (Level .FINE , "Skipping reconfiguration of ScriptApproval during Jenkins startup sequence" );
543
546
}
544
547
}
545
548
You can’t perform that action at this time.
0 commit comments