пятница, 23 апреля 2021 г.

Recover Credentials in Jeknins


1. Find the name of the Credential: 

2. Jenkins > Credentials

3. Find the hash of the Credential: 

    cat /etc/jenkins/home/credentials.xml

4. Decrypt the hash in Jenkins: 

    Go to Jenkins > Manage Jenkins > Script Console

    Execute println(hudson.util.Secret.decrypt("{YOUR_HASH}"))