- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
Critical
 - 
    None
 - 
    prod
 
I tried to run below commands in script console, which fixed my issue for a while but when I start a new build and restart pipeline it throws same "Method too large" error. I want them to add as part of my declarative Jenkinsfile or set as global variables. I tried few ways to do it, unfortunately am not successful with it.
We have a declarative Jenkinsfile of 1690 lines. which cannot be broken more small. we declared and called functions wherever possible.
Its a blocker for us now.
Please guide me to resolve this error at the earliest.
- duplicates
 - 
                    
JENKINS-37984 org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during class generation: Method code too large! error in pipeline Script
-         
 - Open
 
 -