-
Bug
-
Resolution: Not A Defect
-
Minor
-
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.
It's a little obscure, but WorkflowScript is what you're looking for. That's the fake class name we use for the Pipeline script, whether it comes from a Jenkinsfile or a script in the job config itself, etc.