How to reset use / password for jenkins on windows?

Perhaps the fool question, I installed jenkins on windows by default, did not set the user / password, it worked first, no need to log in. But when you start the 8080 web page, now it hangs on the login page, I tried some ordinary combinations of users and passwords, no one could get through. Also searched for permission on the website, only find some about Linux, not about windows, so help is needed. jenkins login page

+7
windows jenkins
source share
4 answers

You can try reinstalling Jenkins protection:

  • Stop Jenkins Service
  • Open config.xml with a text editor (notepad ++), possibly in C:\jenkins\config.xml
  • Find <useSecurity>true</useSecurity> and change it to <useSecurity>false</useSecurity>
  • Start the jenkins service

You can create an administrator user and enable protection again.

+16
source share

Read initial password:

 C:\Program Files(x86)\Jenkins\secrets\initialAdminPassword 

The default username is "admin". You can change the administrator password via

 'Manage Jenkins' --> 'Manage Users' --> Password 

Then log out and log in to verify that the new password works.

+5
source share

This is for a Windows environment:

I got the initial administrator password in C:. \ Users \ Deepak ("MyUser") Jenkins \ secrets \ initialAdminPassword

I managed to log in with the user "admin" and over the password. Then under Jenkins> people I edited the user password and clicked on the application to reflect the changes.

+2
source share

I got the initial password in the path C: \ Program Files (x86) \ Jenkins \ secrets \ initialAdminPassword

Then I successfully log in with the name "administrator" as the username.

0
source share

All Articles