How do I get initial admin password for jenkins on Mac?

  1. Navigate to this folder /Users/Shared/Jenkins/Home
  2. Right click on secrets/ folder and select "Get Info"
  3. Scroll down to the right bottom corner of the pop up window and click on the lock image > enter your password > ok
  4. Click on the "+" at the left bottom corner of the pop up window and add the user 4.5 Click on Settings icon - left bottom and Apply changes.
  5. Open the "secrets" folder and find the initialAdminPassword file to get the initial admin password. If you don't have permission to the file, you need to right click on the file and select "Get Info" then repeat step 3 and 4 above to access the file.

Try it

sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword

and copy the password.


If you have installed Jenkins through HomeBrew, check

sudo cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword

Tags:

Macos

Jenkins