Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
List pending script approvals in Jenkins
import org.jenkinsci.plugins.scriptsecurity.scripts.*
ScriptApproval sa = ScriptApproval.get();
//list pending approvals
for (ScriptApproval.PendingScript pending : sa.getPendingScripts()) {
println "Pending Approved : " + pending.script
}
//list pending signatures
for (ScriptApproval.PendingSignature pending : sa.getPendingSignatures()) {
println "Pending Signature : " + pending.signature
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment