0

Unable to login to jenkins even if we enter valid credential

login-jenkins-failed

NearHuscarl
  • 38,825
  • 11
  • 144
  • 140
BibhuTest
  • 21
  • 1
  • 1
  • 1

3 Answers3

3

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

Krishan Kant
  • 167
  • 2
  • 9
0

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.

0

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.