How to get username and password for recently installed Jenkins?

Solution 1:

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

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

Solution 2:

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