Browse code

show how to uninstall jenkins if there are issues upgrading

Anthony Young authored on 2011/11/12 06:53:56
Showing 1 changed files
... ...
@@ -25,6 +25,13 @@ echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/je
25 25
 wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
26 26
 apt-get update
27 27
 
28
+
29
+# Clean out old jenkins - useful if you are having issues upgrading
30
+CLEAN_JENKINS=${CLEAN_JENKINS:-no}
31
+if [ "$CLEAN_JENKINS" = "yes" ] then;
32
+    apt-get remove jenkins jenkins-common
33
+fi
34
+
28 35
 # Install software
29 36
 DEPS="jenkins cloud-utils"
30 37
 apt-get install -y --force-yes $DEPS