-
-
Save gotunandan/5441272c7c18cb89d6af42e8f8074711 to your computer and use it in GitHub Desktop.
pre-approve all pending script approvals, e.g. from a JobDSL script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jenkins.* | |
import jenkins.model.* | |
Jenkins.instance.getExtensionList('org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval')[0].get().preapproveAll() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment