Jenkins: decrypt a secret
Use Jenkins Script Console
to decrypt a secret from secrets.xml
.
hashed_pw = 'your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
passwd = hudson.util.Secret.decrypt(hashed_pw)
println(passwd)
Use Jenkins Script Console
to decrypt a secret from secrets.xml
.
hashed_pw = 'your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'
passwd = hudson.util.Secret.decrypt(hashed_pw)
println(passwd)