summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjenkinstool4
1 files changed, 3 insertions, 1 deletions
diff --git a/jenkinstool b/jenkinstool
index 9f321c8..210cfba 100755
--- a/jenkinstool
+++ b/jenkinstool
@@ -462,6 +462,7 @@ sudo apt-get update || true
sudo apt-get --no-remove --allow-unauthenticated -y upgrade || \
sudo apt-get -y -f install
sudo apt-get --no-remove --allow-unauthenticated -y upgrade
+sudo apt-get clean
cat << EOF > /var/lib/jenkins/.dput.cf
[jenkins]
@@ -494,7 +495,8 @@ missing="$(dpkg-checkbuilddeps 2>&1 |
sed 's/([^)]*)//g' |
tr -s ' ' '\n')"
case "$missing" in
- ?*) sudo apt-get install --no-remove --allow-unauthenticated -y $missing ;;
+ ?*) sudo apt-get install --no-remove --allow-unauthenticated -y $missing ;
+ sudo apt-get clean ;;
esac
''')
jc.add_ssh_command('\n'.join(project['build-commands']))