Unable to login to jenkins even if we enter valid credential
-
Check the log file. Pretty hard to help you with this amount of information. – StephenKing Jun 21 '17 at 04:19
3 Answers
You can change the password by manually editing the configuration file for your user. (/jenkins/users/username/config.xml) and update the contents of passwordHash:
<passwordHash>#jbcrypt:$2a$10$razd3L1aXndFfBNHO95aj.IVrFydsxkcQCcLmujmFQzll3hcUrY7S</passwordHash>
Restart Jenkins and login using below password:
test
Have a look at below thread: Reset Jenkins Configuration Command Line
- 167
- 2
- 9
-
-
This is the path on my PC: `C:\Program Files (x86)\Jenkins\config.xml` – Francislainy Campos Feb 22 '20 at 21:29
-
With the limited information you have provided, i think you were pressing wrong credentials. However, i know of 2 options to fix this :
1) Go to your Jenkins installation Directory (Usually C:\Users\<UserID>\.jenkins\), look for config.xml - Check for below xml tags
useSecurity authorizationStrategy. You can play around with the values to get anonymous access/allow signup etc..
2) Re-install the jenkins itself - Remember to backup your jobs/workspace if you have already coded some jobs.
In case , you are installing as Jenkins as a 'Windows service' , then you can use username: admin & initial password: 'provided while installing Jenkins' to log in.