Skip to content

Instantly share code, notes, and snippets.

@gitkent
Created November 4, 2021 22:42
Show Gist options
  • Save gitkent/38703e01630ebc2f8844d00dd62ac6da to your computer and use it in GitHub Desktop.
Save gitkent/38703e01630ebc2f8844d00dd62ac6da to your computer and use it in GitHub Desktop.
Retrieve Jenkins script approval hash
import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval
ScriptApproval scriptApproval = ScriptApproval.get()
scriptApproval.pendingScripts.each {
println it.hash
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment