Created
February 3, 2014 02:28
-
-
Save kumichou/8778069 to your computer and use it in GitHub Desktop.
Simple Bash update script to update a Jenkins install on OS X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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