Skip to content

Instantly share code, notes, and snippets.

View gitkent's full-sized avatar

kent.io gitkent

  • Australia
  • 21:20 (UTC +10:00)
View GitHub Profile
@gitkent
gitkent / scriptApproval.groovy
Created November 4, 2021 22:42
Retrieve Jenkins script approval hash
import org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval
ScriptApproval scriptApproval = ScriptApproval.get()
scriptApproval.pendingScripts.each {
println it.hash
}