Jenkins: decrypt a secret

2023-09-23 1 min read jenkins Brialius

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)