T
T
Today I learned
Search…
How to accept script changes
If your Jenkins build job contains scripts, sometimes new deployments will have this error when you run them the first time:
1
Started by user dummyuser
2
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use
3
at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:469)
4
at org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.create(CpsFlowDefinition.java:121)
5
at org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition.create(CpsFlowDefinition.java:68)
6
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:293)
7
at hudson.model.ResourceController.execute(ResourceController.java:97)
8
at hudson.model.Executor.run(Executor.java:429)
9
Finished: FAILURE
Copied!
To get around this, go to:
Jenkins -> Manage Jenkins -> In-process Script Approval
Scroll down to the scripts that needs to be approved and click on the Approve button as needed.
Last modified 1yr ago
Copy link