Skip to content

Commit 57346b7

Browse files
show how to uninstall jenkins if there are issues upgrading
1 parent c0d4e67 commit 57346b7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/jenkins/jenkins_home/build_jenkins.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/je
2525
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -
2626
apt-get update
2727

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+
2835
# Install software
2936
DEPS="jenkins cloud-utils"
3037
apt-get install -y --force-yes $DEPS

0 commit comments

Comments
 (0)