Issue
A script continuously needs to be approved despite listed as approved in scriptApproval.xml
.
ERROR: Build step failed with exception
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use
Environment
- CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
- CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
- CloudBees CI (CloudBees Core) on traditional platforms - Client controller
- CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
- CloudBees Jenkins Distribution
- CloudBees Jenkins Enterprise - Managed controller
- CloudBees Jenkins Enterprise - Operations Center
- CloudBees Jenkins Platform - Client controller
- CloudBees Jenkins Platform - Operations Center
- Jenkins LTS
Resolution
Please open a support ticket at https://support.cloudbees.com with your support bundle and your scriptApproval.xml
file, so we can diagnose this issue.
Workaround $
You can work-around this issue by re-adding your script:
-
Backup current
$JENKINS_HOME/scriptApproval.xml
. -
Stop the Controller.
-
Modify the file and remove all references to the problematic method or script.
-
Start the Controller.
-
Run the build again and re-approve the method.
0 Comments