Skip to content

Instantly share code, notes, and snippets.

@dgk
Created December 17, 2020 14:09
Show Gist options
  • Save dgk/29e0199d42ea2b3d7bea2274842c6d21 to your computer and use it in GitHub Desktop.
Save dgk/29e0199d42ea2b3d7bea2274842c6d21 to your computer and use it in GitHub Desktop.
def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
org.jenkinsci.plugins.plaincredentials.StringCredentials.class,
Jenkins.instance,
null,
null
);
for (c in creds) {
println( ( c.id + "=" + c.getSecret()))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment