Skip to content

Commit 66afa75

Browse files
committed
CpsFlowExecution.parseScript(): MethodTooLargeException: actionable suggestions for pipeline devs
Signed-off-by: Jim Klimov <[email protected]>
1 parent fa95de7 commit 66afa75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ private CpsScript parseScript() throws IOException {
685685
}
686686
// Short message suffices, not much that a pipeline developer
687687
// can do with the stack trace into the guts of groovy
688-
msg += ": " + mtlEx.getMessage();
688+
msg += "; please refactor to simplify code structure and/or move logic to a Jenkins Shared Library: ";
689+
msg += mtlEx.getMessage();
689690

690691
// Make a note in server log
691692
LOGGER.log(Level.SEVERE, msg);

0 commit comments

Comments
 (0)