Unlocking Jenkins

When you access Jenkins for the first time, you are asked to unlock it using a secret initial 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. If you have chosen to install Jenkins somewhere else, then look for the file under <Jenkins installation directory>\secrets.
  • On Linux: You can find the file under /var/jenkins_home/secrets:
Unlocking Jenkins

Get the ...

Get Learning Continuous Integration with Jenkins - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.