Hi, I tried your example, but it fails when calling the err.getCauses() method:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method org.jenkinsci.plugins.workflow.steps.FlowInterruptedException getCauses
After some time searching online I finally found that there is a UI in jenkins to approve scripts security, at this url: JENKINS_URL/scriptApproval/
Comments
5 comments
Hi, I tried your example, but it fails when calling the err.getCauses() method:
After some time searching online I finally found that there is a UI in jenkins to approve scripts security, at this url: JENKINS_URL/scriptApproval/
Hi,
I have the "RejectedAccessException" but I don't have any pending approval.
I'm executing the pipeline using Jenkinsfile.
Thank you!
Hello Sergio,
can you please add also the message after "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:" ? Thanks
Paolo Brocco, Sergio Sacristán: Can you provide us the Jenkins + Plugin versions Jenkinsfile is running to analyze it deeper
How would I do this in a declarative pipeline? Would love an example of that, not having much luck finding a good example anywhere.
Please sign in to leave a comment.