Skip to content

Instantly share code, notes, and snippets.

@kumichou
Created February 3, 2014 02:28
Show Gist options
  • Save kumichou/8778069 to your computer and use it in GitHub Desktop.
Save kumichou/8778069 to your computer and use it in GitHub Desktop.
Simple Bash update script to update a Jenkins install on OS X
#!/bin/bash
# This script is meant for OS X Jenkins installs where the install PKG was originally used
cd /Applications/Jenkins
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo mv jenkins.war jenkins-$(date +"%Y%m%d%H%M").war
sudo curl -L -o jenkins.war http://mirrors.jenkins-ci.org/war/latest/jenkins.war
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment