Skip to content

Instantly share code, notes, and snippets.

@eeichinger
Forked from tuxfight3r/jenkins-decrypt.groovy
Created October 19, 2016 19:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eeichinger/2e386c3ea5f1f326d132c2b716a3a153 to your computer and use it in GitHub Desktop.
Save eeichinger/2e386c3ea5f1f326d132c2b716a3a153 to your computer and use it in GitHub Desktop.
Decrypting Jenkins Password
#To Decrypt Jenkins Password from credentials.xml
#<username>jenkins</username>
#<passphrase>your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J</passphrase>
#go to the jenkins url
http://jenkins-host/script
#In the console paste the script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
passwd = hudson.util.Secret.decrypt(hashed_pw)
println(passwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment