Created
November 4, 2021 22:42
-
-
Save gitkent/38703e01630ebc2f8844d00dd62ac6da to your computer and use it in GitHub Desktop.
Retrieve Jenkins script approval hash
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 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