[Qa-jenkins-scm] [jenkins.debian.net] 01/02: reproducible: maintenance: add a check for generic old cruft in /schroots
Mattia Rizzolo
mattia at debian.org
Thu Apr 5 13:44:07 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 e4f3826b9f8a991d00c74113ab0f660fe0f97607
Author: Mattia Rizzolo <mattia at debian.org>
Date: Thu Apr 5 15:00:24 2018 +0200
reproducible: maintenance: add a check for generic old cruft in /schroots
this will help notice old stuff, e.g. chroots no more maintained that
needs delation, broken jobs, etc.
Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
bin/reproducible_maintenance.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index dc825c9..b4ca164 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -231,6 +231,19 @@ if [ ! -z "$OLDSTUFF" ] ; then
DIRTY=true
fi
+# find very old schroots
+echo "$(date -u) - Detecting schroots older than 1 month"
+OLDSTUFF=$(find /schroots/ -maxdepth 1 -mtime +30 -exec ls -lad {} \;)
+if [ ! -z "$OLDSTUFF" ]; then
+ echo
+ echo "Warning: schroots older than 1 month found in /schroot:"
+ echo "$OLDSTUFF"
+ echo
+ echo "Manual cleanup needed!"
+ echo
+ DIRTY=true
+fi
+
if [ "$HOSTNAME" = "$MAINNODE" ] ; then
#
# find failed builds due to network problems and reschedule them
--
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