Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in DevOps and Agile by (29.3k points)

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.

3 Answers

+1 vote
by (50.2k points)

For this the 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

Also, if you wish, you can learn more about Jenkins on Jenkins Tutorial and join Jenkins Certification

0 votes
by (37.3k points)

When you start Jenkins, the configuration is created along with the initial default administrator account.

You can use the default admin username and password to access the Jenkins UI.

The Jenkins default password is stored in the 

$JENKINS_HOME/secrets/initialAdminPassword  file (the exact location of the Jenkins default password is presented in the Jenkins console log).

Default Jenkins Password:

The Jenkins default username is admin.

The Jenkins default password : 

$JENKINS_HOME/secrets/initialAdmin

Password file on the server, that is usually located at:

/var/lib/jenkins/secrets/initialAdminPassword

Default Username File with default Password

admin       /var/lib/jenkins/secrets/initialAdminPassword

0 votes
by (1.2k points)

In order to log in to Jenkins first time, you need:

Username: admin

password: You can get this at : 

Code:

$JENKINS_HOME/secrets/initialAdminPassword

File Location: 

  • For Windows : JENKINS HOME is generally at:

(In java)

          Code:

C:\Program Files (x86)\Jenkins\secrets\initialAdminPassword

  • For Linux : Linux is installed using package managers like apt or yum, normally at : 

Code:

/var/lib/jenkins/secrets/initialAdminPassword

Getting the password : 

On Linux. Here you need to use either of the following command printed the password.

Code:

cat /var/lib/jenkins/secrets/initialAdminPassword

 

Or 

Code:

cat $JENKINS_HOME/secrets/initialAdminPassword

On Windows: Open the initialAdminPassword file with a text editor, such as Notepad, and copy the login password for Jenkins.

This is only read once, after which Jenkins prompts you to create a custom admin username and password for login.

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...