Thursday, May 17, 2018

Jenkins admin password unlock - Forgotten Jenkins Admin Password - How to unlock password

Here below are the steps for resetting Jenkins admin password:

1. Edit the Jenkins config.xml under /var/lib/jenkins to disable securityFlag by executing below command:
sudo vi /var/lib/jenkins/config.xml

2. Find this <useSecurity>true</useSecurity> and change it to <useSecurity>false</useSecurity>
3. Restart jenkins by below command:
sudo service jenkins restart
4. Access Jenkins now, click on Manage Jenkins, click on configure Global security
5. click on Enable security 
6. Click on Jenkins Own user database, click on allow users to sign up

6. click on apply and save

7. Now click on sign up and create a new user and password.


No comments:

Post a Comment