summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintenance.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2017-04-26 12:55:20 +0200
committerHolger Levsen <holger@layer-acht.org>2017-04-26 12:55:20 +0200
commit8634f957113ab2596e58bf8c4c2a3708b74dd6a5 (patch)
treebd525fae0fa301d36d21ea2de5b96efec52aea52 /bin/reproducible_maintenance.sh
parent6448e85c7d7e36f78443591e76c33bb9446ceb36 (diff)
downloadjenkins.debian.net-8634f957113ab2596e58bf8c4c2a3708b74dd6a5.tar.xz
reproducible Debian: run 24 i386 builders again…
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin/reproducible_maintenance.sh')
-rwxr-xr-xbin/reproducible_maintenance.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 1c2076ab..066f968c 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -206,6 +206,20 @@ if [ -d /srv/workspace/pbuilder/ ] ; then
fi
fi
+# delete build services logfiles
+if [ -d /var/lib/jenkins/userContent/reproducible/debian/build_service/ ] ; then
+ echo "$(date -u) - Deleting pbuilder build directories, older than 3 days."
+ OLDSTUFF=$(find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +2 -exec ls -lad {} \; || true)
+ if [ ! -z "$OLDSTUFF" ] ; then
+ echo
+ echo "Old pbuilder build directories found in /var/lib/jenkins/userContent/reproducible/debian/build_service/"
+ echo -n "$OLDSTUFF"
+ find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +2 -exec sudo rm -rf --one-file-system {} \; || true
+ echo
+ DIRTY=true
+ fi
+fi
+
# remove old and unused schroot sessions
echo "$(date -u) - Removing unused schroot sessions."
cleanup_schroot_sessions