How to reset password of jenkins in Windows
- doanhoavn
- Jul 18, 2021
- 1 min read
Disable Jenkins Security
Update useSecurity from true to false in C:\Users\<youraccount>\.jenkins\config.xml
<useSecurity>true</useSecurity>
Reset Jenkins Admin’s Password
Restart your jenkins
java -jar jenkins.war
Access http://localhost:8080/ and do the below steps
Click on People on the left-hand navigation menu.
Click on the Admin - the account you setup
Delete the user account.
Navigate to Jenkins / Manage Jenkins.
Click on Configure Global Security
Check the Enable Security check box
Under Security Realm, select Jenkins’ own user database
In the Authorization section, select Logged-in users can do anything.
Unselect Allow anonymous read access.
Click Save to save your changes.
Create New Jenkins Admin User
Once you have completed the tasks above, you will be redirect to a page where a new Admin user can be created. Fill in your new details and then click Create First Admin User.
References:
Comments