Created
May 6, 2013 22:32
-
-
Save austynmahoney/5528796 to your computer and use it in GitHub Desktop.
Jenkins upgrade script
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 | |
TOMCAT=/mnt/android/apache-tomcat-7.0.39 | |
echo "Stopping Tomcat" | |
$TOMCAT/bin/catalina.sh stop | |
cd $TOMCAT/webapps | |
echo "Removing jenkins" | |
rm -rf jenkins | |
rm -rf jenkins.war | |
echo "Downloading latest Jenkins version" | |
wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war | |
echo "Starting Tomcat" | |
$TOMCAT/bin/catalina.sh start | |
cd ~ | |
echo "Finished upgrading Jenkins" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment