File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugin/src/main/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -639,15 +639,15 @@ private CpsScript parseScript() throws IOException {
639639 for (Entry <String , String > e : loadedScripts .entrySet ()) {
640640 shell .reparse (e .getKey (), e .getValue ());
641641 }
642- } catch (Exception x ) {
642+ } catch (RuntimeException | Error x ) {
643643 // Suspected groovyjarjarasm.asm.MethodTooLargeException or a
644644 // org.codehaus.groovy.control.MultipleCompilationErrorsException
645645 // whose collection of errors refers to MethodTooLargeException.
646646 // Per review comments, we do not want to statically compile a
647647 // dependency on the groovyjarjarasm.asm.MethodTooLargeException
648648 // internals, so gauge hitting it via String name comparisons.
649649 // Other cases may be (subclasses of) RuntimeException or Error.
650- Exception mtlEx = null ;
650+ Throwable mtlEx = null ;
651651 int ecCount = 0 ;
652652
653653 // Clean up first
You can’t perform that action at this time.
0 commit comments