I’ve just started to use Jenkins as part of a continuous integration setup that I’m building. Mostly I’m doing this to learn and then apply this to something bigger. At home, I’m using Jenkins as a CI server to manage testing of my PHP WordPress plugins. I know it could be overkill, but as a one man band, automating testing is something that saves me time and increases my confidence that the development feature is tested and ready to deploy!
How to Stop, Restart Jenkins – Common URL options
URL’s to stop or restart Jenkins
http://[jenkins-server]/[command] where [command] can be
exit shutdown jenkins
restart restart jenkins
reload to reload the configuration
Terminal and Kill Process
ps -e | grep jenkins
53 ?? 0:02.51 /usr/bin/java -jar /Applications/Jenkins/jenkins.war 392 ttys000 0:00.00 grep jenkins
$ sudo kill 53
Terminal and Start / Stop daemon
You want to use launchctl to start and stop Jenkins.
Start Jenkins: sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
Stop Jenkins: sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist