Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to unlock jenkins on windows 10

I installed jenkins on my window 10 machine by using the msi I downloaded. It installed fine and has now launched the browser prompting me to unlock jenkins with the initialadminpassword. I can't find this file anywhere. I looked in the install directory C:\Program Files (x86)\Jenkins and I have checked the log files and no password was written to it. I even did a search on my whole C: for initialadminpassword and nothing came up. I do have a file called secret.key in my Jenkins install directory but the key in this file isn't working. Any ideas on how I can get around this would be very helpful

Thanks

like image 622
user3803807 Avatar asked Jun 15 '17 05:06

user3803807


People also ask

Where we can find the credentials to unlock Jenkins?

Unlocking Jenkins From the Jenkins console log output, copy the automatically-generated alphanumeric password (or) open the file located in /var/Jenkins_home/secrets/initialAdminPassword . On the Unlock Jenkins page, paste this password into the Administrator password field and click Continue.

Can we install Jenkins on Windows 10?

You can now install Jenkins on Windows and start creating your continuous integration pipeline. You are well on your way to becoming an automation and CI/CD expert. Jenkins enables you to incorporate your development processes in a CI/CD pipeline.


2 Answers

In the Jenkins Home directory there should be a secrets subfolder. In that directory there should be a file called initialAdminPassword (no extension).

This file contains the password it is referring to.

like image 160
Andrew Gray Avatar answered Sep 22 '22 07:09

Andrew Gray


I found the long password in this path C:\Program Files\Jenkins\jinkins.err, in the jinkins.err file all the logs are recorded, so if you screw down slowly you can find the password being generated by the system.

like image 20
Peter Nkolo Avatar answered Sep 21 '22 07:09

Peter Nkolo