Thursday, March 28, 2013

Jenkins on Mac OS X Tips and Tricks

Here I'm going to collect useful Jenkins Mac OS X tips and tricks:
  • Stop Jenkins
  • sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
  • Start Jenkins
  • sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
  • Change Jenkins default port
  • sudo defaults write /Library/LaunchDaemons/org.jenkins-ci httpPort '9999'
    Verify this settings:
    defaults read /Library/LaunchDaemons/org.jenkins-ci
    Then restart (stop, start) Jenkins daemon 
  • Disable Jenkins start after OS X reboot
  • sudo defaults write /Library/LaunchDaemons/org.jenkins-ci RunAtLoad -bool NO
  • Uninstall Jenkins
  • The next command requires admin password:
    /Library/Application Support/Jenkins/Uninstall.command
  • Upgrade Jenkins
    1. Download the latest war of Jenkins from the website
    2. Stop Jenkins
    3. Copy the downloaded "war" from your download directory to the "/Applications/Jenkins/" folder. 
    4. Start Jenkins
    When Jenkins is started You should have an updated installation.