[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] chroot-installation: properly cleanup old directories
Holger Levsen
gitlab at salsa.debian.org
Mon Mar 4 11:34:42 GMT 2019
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
4348b868 by Holger Levsen at 2019-03-04T11:34:31Z
chroot-installation: properly 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
=====================================
@@ -123,12 +123,12 @@ fi
#
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)
+ OLDSTUFF=$(find /srv/workspace/chroots/ -maxdepth 2 -name 'chroot-installation*' -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
+ ( find /srv/workspace/chroots/ -maxdepth 2 -name 'chroot-installation*' -type d -mtime +6 -exec sudo rm -rf --one-file-system {} \; ) || true
echo
DIRTY=true
fi
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4348b868fd0f49c3defaa546326bd6c48532ef25
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/4348b868fd0f49c3defaa546326bd6c48532ef25
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/dab88daf/attachment-0001.html>
More information about the Qa-jenkins-scm
mailing list