Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72290

Encountering method too large error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • workflow-cps-plugin
    • 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.

            andau Andreas Gautsch
            prams_n Prams
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: