How do I get initial admin password for jenkins on Mac?
- Navigate to this folder
/Users/Shared/Jenkins/Home
- Right click on
secrets/
folder and select "Get Info" - Scroll down to the right bottom corner of the pop up window and click on the lock image > enter your password > ok
- 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.
- 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