[Qa-jenkins-scm] [jenkins.debian.net] 01/03: reproducible: maintenance: also delete 3-days old temporary chroots
Mattia Rizzolo
mattia at debian.org
Thu Apr 5 15:23:08 UTC 2018
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository jenkins.debian.net.
commit 44fa396ca783605931d4738d7d89d468c936910c
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Apr 5 17:14:54 2018 +0200
reproducible: maintenance: also delete 3-days old temporary chroots
these are there from the times the schroot-create.sh script fails
mid-way and leaves the temporary directory laying around.
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_maintenance.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index f358ec7..208f4bd 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -234,7 +234,7 @@ fi
# find old schroots
echo "$(date -u) - Removing schroots older than 3 days."
-regex="/schroots/reproducible-.*-[0-9]{1,5}"
+regex="/schroots/(reproducible-.+-[0-9]{1,5}|schroot-install-.+)"
OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "$regex" -mtime +2 -exec ls -lad {} \; || true)
if [ ! -z "$OLDSTUFF" ] ; then
echo
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list