diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-03-14 09:00:19 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-03-14 09:00:19 +0000 |
commit | f3d3b1a9ad430d6e93998286807604c3d396ab0f (patch) | |
tree | 7c89bd13ded84c5b39d6f345a8bc4a189f14e9f0 | |
parent | 0a1230578f6152594057a66c31943fdeb606ae40 (diff) | |
download | jenkinstool-f3d3b1a9ad430d6e93998286807604c3d396ab0f.tar.gz |
Run apt-get clean when suitable, to reduce disk use
-rwxr-xr-x | jenkinstool | 4 |
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'])) |