-
Type:
Bug
-
Resolution: Won't Fix
-
Priority:
Major
-
Component/s: groovy-plugin
-
None
documentation on https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin explains how to retrieve the current build, as Thread.currentThread().executable.
This looks like a hack, and an implementation detail.
a variable bound to groovy shell, or a method to retrieve the current build would be far cleaner.