How to get username and password for recently installed Jenkins?

I have recently installed Jenkins on private server. Now when I have rebooted the server, it is asking for username and password. But, I have not given any such credentials. I have turned disable signup to false from true, but I am not able to restart my Jenkins as it is showing service not recognized.

3 Answers

If you have not set jenkins initial credential then it will be

  • username: admin
  • password: Go to your .jenkins/secrets/initialAdminPassword for password.
2

If you use Ubuntu, you can find initialAdminPassword using sudo cat /var/lib/jenkins/secrets/initialAdminPassword

For all of you (like me) with jenkins.war under:

/var/lib/jenkins/

but not:

/var/lib/jenkins/secrets/initialAdminPassword

You have to start your jenkins server and then execute

sudo more /var/log/jenkins.log

you will see something like

*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
64876418716348764921649873214

That's your password for user 'admin'.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like