I found out that the groovy script execution under "Inject environment variables..."
is done using the "Environment Injector Plugin" which prepares these missing
variables like this:
currentJob
Current hudson.model.Job instance.
currentBuild
Current hudson.model.Run instance.
currentListener
Current hudson.model.TaskListener instance, which can be used for logging purposes.
out
Another logging instance as java.io.PrintStream. It is recommended to use currentListener instead of this variable when possible.
As I'm now executing my script directly I need to prepare these variables myself.
Can anybody help me to get to them? I tried to find this in the envinject plugin
source but I wasn't able to. I guess it should be pretty simple.
Thanks
bye Fabi