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/5f5fa554-4f56-4bdc-a4c3-52e831297dae%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
