show how to uninstall jenkins if there are issues upgrading

This commit is contained in:
Anthony Young 2011-11-11 13:53:56 -08:00
parent c0d4e678d4
commit 57346b7fcd

View file

@ -25,6 +25,13 @@ echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/je
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
apt-get update
# Clean out old jenkins - useful if you are having issues upgrading
CLEAN_JENKINS=${CLEAN_JENKINS:-no}
if [ "$CLEAN_JENKINS" = "yes" ] then;
apt-get remove jenkins jenkins-common
fi
# Install software
DEPS="jenkins cloud-utils"
apt-get install -y --force-yes $DEPS