[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] chroot-installation: cleanup old directories
Holger Levsen
gitlab at salsa.debian.org
Mon Mar 4 11:24:06 GMT 2019
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
4f53a500 by Holger Levsen at 2019-03-04T11:23:50Z
chroot-installation: cleanup old directories
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -118,6 +118,22 @@ if [ -d /srv/workspace/pbuilder/ ] ; then
fi
fi
+#
+# delete old chroot-installation directories (not related to reproducible builds)
+#
+if [ -d /srv/workspace/chroots/ ] ; then
+ echo "$(date -u) - Deleting chroots build directories, older than 7 days."
+ OLDSTUFF=$(find /srv/workspace/chroots/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +6 -exec ls -lad {} \; || true)
+ if [ ! -z "$OLDSTUFF" ] ; then
+ echo
+ echo "Old chroot-installation directories found in /srv/workspace/chroots/"
+ echo -n "$OLDSTUFF"
+ ( find /srv/workspace/chroots/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +6 -exec sudo rm -rf --one-file-system {} \; ) || true
+ echo
+ DIRTY=true
+ fi
+fi
+
#
# check for working proxy
#
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4f53a500a71747624540c8ef8869a8ea968b0550
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4f53a500a71747624540c8ef8869a8ea968b0550
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20190304/274a0540/attachment.html>
More information about the Qa-jenkins-scm
mailing list