Skip to content

Instantly share code, notes, and snippets.

@austynmahoney
Created May 6, 2013 22:32
Show Gist options
  • Save austynmahoney/5528796 to your computer and use it in GitHub Desktop.
Save austynmahoney/5528796 to your computer and use it in GitHub Desktop.
Jenkins upgrade script
#!/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