Encountering method too large error

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Andreas Gautsch
            Reporter:
            Prams
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: