I installed jenkins by downloading jenkins-2.2.pkg. After the installation is complete, Chrome auto-connected to http://localhost:8080/login?from=%2F
and I see
1.Double tap on finder select "Go to folder" enter /Users/Shared/Jenkins/Home
2.Check the "secret" folder , right click and select "get info"
3.Click on "lock" icon and enter admin password and make change in view type (change into user view) after this your folder is accessible .
4.Do same for password text file also
/Users/Shared/Jenkins/Home
secrets/
folder and select "Get Info"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.If you have installed Jenkins through HomeBrew
, check
sudo cat /Users/$(whoami)/.jenkins/secrets/initialAdminPassword
The current user might not have permissions to Secrets folder to access the initialAdminPassword file. So give permission by selecting "Secrets" folder by CMD+ i which launches a new screen and then unlock and then provide required permissions.
Locked file
Unlocked and Access to initialAdminPassword file
Try it
sudo cat /Users/Shared/Jenkins/Home/secrets/initialAdminPassword
and copy the password.
In my case, I was looking for this on MY MAC, but what you actually have to do is ssh to your docker container.
docker ps
which will display the containers, then copy the id of the container you created,
then do
docker exec -it <paste-id-here> /bin/bash
If that's successful, you will see your terminal change to, then you can run:
cat