Como desinstalar completamente o Jenkins do OS X

4

Eu tentei instalar o Jenkins no meu OS X, que foi bem-sucedido, mas o uso não é bem-sucedido. Portanto, planejando concluir / limpar a desinstalação e refazer tudo de volta.

Qualquer ajuda sobre o que todos os vestígios do Jenkins precisam ser limpos para evitar problemas na instalação.

    
por DJD 02.06.2015 / 08:49

1 resposta

11

These instructions apply if you installed using the official Jenkins Mac installer from http://jenkins-ci.org/

Execute uninstall script from terminal (admin password required):

'/Library/Application Support/Jenkins/Uninstall.command'

or use Finder to navigate into that folder and double-click on Uninstall.command.

Finally delete last configuration bits which might have been forgotten:

sudo rm -rf /var/root/.jenkins ~/.jenkins

If the uninstallation script cannot be found (older Jenkins version), use following commands:

sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo rm /Library/LaunchDaemons/org.jenkins-ci.plist
sudo rm -rf /Applications/Jenkins "/Library/Application Support/Jenkins" /Library/Documentation/Jenkins

and if you want to get rid of all the jobs and builds:

sudo rm -rf /Users/Shared/Jenkins

and to delete the jenkins user and group (if you chose to use them):

sudo dscl . -delete /Users/jenkins
sudo dscl . -delete /Groups/jenkins

These commands are also invoked by the uninstall script in newer Jenkins versions, and should be executed too:

sudo rm -f /etc/newsyslog.d/jenkins.conf
pkgutil --pkgs | grep 'org\.jenkins-ci\.' | xargs -n 1 sudo pkgutil --forget

Source Como desinstalar o Jenkins? , responda por sti

    
por 05.02.2016 / 02:35