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

Jenkinsfile errors shows Java stacktrace without Jenkinsfile line number

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      When there is an error in my Jenkinsfile (for example, trying to invoke a null function variable) I see a Java stacktrace without details about where the error occurred (see screenshot). I understand that my groovy code is converted to Java, but there are no hints given about where in the Groovy code I should look (no line number, function or variable names, etc).

      I would expect to see a line number of where the error occurred inside the Jenkinsfile, and if  possible the function name it occurred in.

            Unassigned Unassigned
            laszlopandy Laszlo Pandy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: