How to reset the use/password of jenkins on windows?
You can try to re-set your Jenkins security:
- Stop the Jenkins service
- Open the
config.xml
with a text editor (i.e notepad++), maybe be inC:\jenkins\config.xml
(could backup it also). - Find this
<useSecurity>true</useSecurity>
and change it to<useSecurity>false</useSecurity>
- Start Jenkins service
You might create an admin user and enable security again.
Read Initial password :
C:\Program Files(x86)\Jenkins\secrets\initialAdminPassword
Default username is 'admin' and the password is the one from initialAdminPassword when you follow the above path.
'Manage Jenkins' --> 'Manage Users' --> Password
Then logout and login to make sure new password works.
This is for windows environment:
I got the Initial Admin password under C:\Users\Deepak("MyUser").jenkins\secrets\initialAdminPassword
I was able to login with user "admin" and above password. Then under Jenkins> people I edited the password of the user and clicked on apply to reflect the changes.