Created
May 12, 2020 09:42
-
-
Save nixilin/0b27bdb4d2a2e1abbaa5370f00350472 to your computer and use it in GitHub Desktop.
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
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