-
New Feature
-
Resolution: Fixed
-
Minor
-
None
This script snippet:
```
stage "cloning source"
node {
git url: 'https://github.com/arangodb/arangodb.git', branch 'pipeline'
}
```
leads to this error message:
```
[Pipeline] node
Running on master in /var/lib/jenkins/workspace/ArangoDB_Devel_Build
[Pipeline]
[Pipeline] // node
[Pipeline] End of Pipeline
groovy.lang.MissingPropertyException: No such property: branch for class: groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
```
Followed by many dozend more stack frames from the java interpreter.
The error message doesn't mention the actual script line that is broken by line number neither it prints it, nor am I interested in java stack frames. It basically misses every information and fails to highlight the only relevant bit in that barf: `branch`. Also the `[pipeline]` transscript tags don't print the relevant information to help to locate the error itself.