Remove Unused Jenkins-Admin Groovy Scripts
[releng/global-jjb.git] / jenkins-admin / get_all_creds.groovy
diff --git a/jenkins-admin/get_all_creds.groovy b/jenkins-admin/get_all_creds.groovy
deleted file mode 100644 (file)
index 13a5b2a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*****************
-* Extracts all registered credentials and passwords
-*
-* Jenkins credentials are encrypted and passwords cannot be retrived easily.
-* Run this script to get all credentials pairs in an "Id : Password" format.
-* Note: This script will not display information for SSH and Certificate
-* credential types.
-*
-*****************/
-
-import com.cloudbees.plugins.credentials.*
-
-println "Printing all the credentials and passwords..."
-def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(
-    com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.class,
-    Jenkins.instance,
-    null,
-    null
-);
-
-for (c in creds) {
-    try {
-        println(c.id + " : " + c.password )
-    } catch (MissingPropertyException) {}
-}