top of page

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

  1. Click on People on the left-hand navigation menu.

  2. Click on the Admin - the account you setup

  3. Delete the user account.

  4. Navigate to Jenkins / Manage Jenkins.

  5. Click on Configure Global Security

  6. Check the Enable Security check box

  7. Under Security Realm, select Jenkins’ own user database

  8. In the Authorization section, select Logged-in users can do anything.

  9. Unselect Allow anonymous read access.

  10. 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


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2020 by Bom's blogger. Proudly created with Wix.com

bottom of page