Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Default credentials for Jenkins after installation

I have downloaded Jenkins on Windows10. When i try to access jenkins, it is asking for username and password. I have read the threads on the same issue. But I do not find any secrets folder or config.xml file under Jenkins folder.

like image 296
MRavindran Avatar asked Oct 20 '17 00:10

MRavindran


People also ask

How do I log into Jenkins after installation?

The initial Administrator password should be found under the Jenkins installation path (set at Step 2 in Jenkins Installation). For default installation location to C:\Program Files\Jenkins, a file called initialAdminPassword can be found under C:\Program Files\Jenkins\secrets.

How do I find my Jenkins admin password?

This password is stored inside the file initialAdminPassword , which is located inside your jenkins_home directory. The file, along with its full path, is displayed on the Jenkins page, as shown in the following screenshot: On Windows: You can find the file under C:\Program Files (x86)\Jenkins\secrets .

How do I find my Jenkins username?

The username is located in the %JENKINS_HOME%/users/users. xml file.


1 Answers

Username is admin. Password should be located in:

$JENKINS_HOME/secrets/initialAdminPassword

You can view the password using:

cat /var/lib/jenkins/secrets/initialAdminPassword

or

cat $JENKINS_HOME/secrets/initialAdminPassword
like image 190
pat Avatar answered Oct 26 '22 22:10

pat