Skip to main content

Pipeline - How to add an input step, that continues if aborted, using value



  • Paolo Brocco

    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/

  • Sergio Sacristán


    I have the "RejectedAccessException" but I don't have any pending approval.

    I'm executing the pipeline using Jenkinsfile.


    Thank you!

  • Emilio Escobar Reyero

    Hello Sergio,

    can you please add also the message after "org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException:" ? Thanks

  • Carlos Rodriguez Lopez

    Paolo Brocco, Sergio Sacristán: Can you provide us the Jenkins + Plugin versions Jenkinsfile is running to analyze it deeper

  • Jared Christensen

    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.

About CloudBees Support

Our Support Engineers are available to help with any questions or problems you may have with any of our products.