I installed Jenkins via Homebrew and accidentally locked myself out (i.e. set up security before creating an admin-level user). Instructions on the Jenkins wiki instruct me to remove some lines from config.xml that is located in the path JENKINS_HOME.
Where is JENKINS_HOME when jenkins is installed via Homebrew? Or alternatively, how can one nuke an entire installation of jenkins installed via Homebrew? brew uninstalling and installing did not do the trick.
Browse to http://localhost:8080 (or whichever port you configured for Jenkins when installing it) and wait until the Unlock Jenkins page appears.
Go to http://jenkins_master:port/configure and the first line is your Home directory. Log into the machine and go to that location, there you can find the config. xml and change Security to disabled. By default, JENKINS_HOME is at ~/.
The Jenkins home directory contains all the details of your Jenkins server configuration, details that you configure in the Manage Jenkins screen. These configuration details are stored in the form of a set of XML files. Many of the core configurations are stored in the config.
You can find the location of current Jenkins home directory by logging into the Jenkins page. Once logged in, goto 'Manage Jenkins' & select the options 'Configure System'. Here first thing you will see will be the path to your Jenkins Home Directory. Now we will create a new folder for the keeping the jenkins.
Go to http://jenkins_master:port/configure and the first line is your Home directory. Log into the machine and go to that location, there you can find the config.xml and change Security to disabled.
By default, JENKINS_HOME is at ~/.jenkins
.
Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With