Skip to main content

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

Comments

5 comments

  • 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/

    1
  • Sergio Sacristán

    Hi,

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

    I'm executing the pipeline using Jenkinsfile.

     

    Thank you!

    0
  • Emilio Escobar Reyero

    Hello Sergio,

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

    0
  • Carlos Rodriguez Lopez

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

    0
  • 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.

    0

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.