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-scripts/blob/master/cancel-builds-same-job.groovy > > But when I try to access Jenkins.instance I get the error > *org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: > Scripts not permitted to use staticMethod jenkins.model.Jenkins getInstance* > > Any thoughts if this is a Pipeline-Bug or the wrong method to get build > information during a pipeline run? > > > >
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/dfcc4d2b-24f7-478e-9920-15adb049567e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
