Where is Jenkins admin password stored?
Category:
technology and computing
browsers
1 Answer
- For this the Username is admin. Password should be located in: $JENKINS_HOME/secrets/initialAdminPassword.
- You can view the password using: cat /var/lib/jenkins/secrets/initialAdminPassword.
- cat $JENKINS_HOME/secrets/initialAdminPassword.
Also know, what is Jenkins default admin password?
The first time you start Jenkins, the configuration is created along with the administrator user and password. The default login is admin/password . The default password can be configured by setting the JENKINS_PASSWORD environment variable.
Similarly, how do I reset my Jenkins admin password?
How to Reset Jenkins Admin users Password
- First step is taking SSH into Jenkins virtual machine (Here In example I am using Linux).
- This command will open config.
- Go to <useSecurity> tag and check value, it will be true.
- Save this file and exit from file.
- After restart Jenkins services , make user its status is 'active {running}'.
- Now, Delete old admin users.
Step 1: Type 'admin' in User textbox.
- Step 2: Now navigate to the Secrets folder in your .
- Step 3: Open it in Notepad to be able to read it.
- Step 4: The file must have a password.
- Step 5: Paste the password in the password textbox.
- Step 6: To do that just click on People option located in the left-hand sidebar.