Thanks, that was the hint in the right direction!
Am Montag, 22. August 2016 13:21:11 UTC+2 schrieb Lars Meynberg:
>
> Hi guys,
>
> I'd like to access some information about the job and its builds. I've
> found this example from the cloudbees repo:
>
> https://github.com/cloudbees/jenkins-script
Hi,
You may want to take a look at the global env variables for the pipeline on
your own Jenkins server:
http://*JenkinsHost*/job/*MyJobName*/pipeline-syntax/globals
replace the bold part with yours. You may find many things already defined
into environment. To access them into groovy script jus
Hi guys,
I'd like to access some information about the job and its builds. I've
found this example from the cloudbees repo:
https://github.com/cloudbees/jenkins-scripts/blob/master/cancel-builds-same-job.groovy
But when I try to access Jenkins.instance I get the error
*org.jenkinsci.plugins.scr