суббота, 4 января 2020 г.

Recover Credentials from Jenkins

  1. Find the name of the Credential:
    1. Jenkins > Credentials
  2. Find the hash of the Credential:
    1. cat /etc/jenkins/home/credentials.xml
  3. Decrypt the hash in Jenkins:
    1. Go to Jenkins > Manage Jenkins > Script Console
    2. Execute println(hudson.util.Secret.decrypt("{YOUR_HASH}"))