Skip to content

Instantly share code, notes, and snippets.

@res0nat0r
Forked from tknerr/preapprove.groovy
Last active February 20, 2019 23:13
Show Gist options
  • Save res0nat0r/cfc4bd5c0b6c96a630d52859e4636efc to your computer and use it in GitHub Desktop.
Save res0nat0r/cfc4bd5c0b6c96a630d52859e4636efc to your computer and use it in GitHub Desktop.
pre-approve all Jenkins groovy scripts
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