Skip to content

Instantly share code, notes, and snippets.

@nixilin
Created May 12, 2020 09:42
Show Gist options
  • Save nixilin/0b27bdb4d2a2e1abbaa5370f00350472 to your computer and use it in GitHub Desktop.
Save nixilin/0b27bdb4d2a2e1abbaa5370f00350472 to your computer and use it in GitHub Desktop.
com.cloudbees.plugins.credentials.SystemCredentialsProvider.getInstance().getCredentials().forEach{
it.properties.each { prop, val ->
if (prop == "secretBytes") {
println(prop + "=>\n" + new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("${val}").getPlainData()) + "\n")
} else {
println(prop + ' = "' + val + '"')
}
}
println("-----------------------")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment