I installed Jenkins with brew on mac. But it occurs some problem, I want to re-install it. Previously, at the first time I access http://localhost:8080, the page guides you to install some plugins and need you to input the password. But when I use 'brew uninstall jenkins' command and install again, the page will not show. I don't remember the previous default admin passsword. So I can't access the jenkins now. I delete the homebrew cache as well, it not worked. Is there any solutions to uninstall Jenkins completely? I just want to start from the beginning of the installation. Thanks.
6 Answers
In terminal, write and execute
$/Library/Application\ Support/Jenkins/Uninstall.command
Note If you installed it with sudo, then use this:
$sudo /Library/Application\ Support/Jenkins/Uninstall.command
Then follow the instructions.
Remove the hidden .jenkins
directory in your home directory that contains the configuration.
-
4
-
I think the
$HOME/.jenkins
directory typically only applies to Homebrew users, like @jaju mentioned in their pseudo-comment/answer here. But this is indeed where Jenkins content lives forbrew
users, not in/Library/Application Support/Jenkins
or anywhere like that. Jan 24, 2019 at 22:34 -
FYI, I did not install via Brew and had a .jenkins folder. Thanks for this tip from me. Nov 12, 2021 at 0:01
Removing the .jenkins file is actually an answer, depending how Jenkins was installed. For example, the homebrew installation does create instance-specific work area in $HOME/.jenkins
If you have the jenkins instance already running, go to $JENKINS_BASE_URL/configure and check the value of 'Home directory' - that is the place where all user-specific data is stored, like the jobs.
PS: BTW - can't get away from SO stupidity. This is a comment to the answer by Ayobi, but don't have reputation to comment.
To uninstall Jenkins service from your Mac OS X computer, execute uninstall script from terminal:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
/Library/Application Support/Jenkins/Uninstall.command
https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+OSX+Installer
I installed Jenkins as pkg
from jenkins.io. There was some issue and I wanted to delete it. I couldn't find Jenkins folder or Uninstall Command in Library
, so this is what I did,
- Go to
/Applications
--> Delete the Jenkins folder - Delete
/Users/Shared/Jenkins
- Delete Jenkins (there will be a
standard
user withno name
username for the first time when jenkins is installed) from "Users & Groups"
After this I re-installed Jenkins and it seem to work.
-
1I'm not able to select that unnamed standard user. How do i delete it? May 23, 2018 at 5:18
-
1@Krutika Sonawala I know its silly to ask but did you unlock the User's & Group settings, so that it is editable? I was able to delete without any issue May 23, 2018 at 5:38
--force
when removing.