[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] sweep up debris left by the careless janitor
Holger Levsen (@holger)
gitlab at salsa.debian.org
Fri May 28 11:29:11 BST 2021
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
88b2a503 by Philip Hands at 2021-05-28T12:28:53+02:00
sweep up debris left by the careless janitor
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -90,14 +90,14 @@ if [ ! -z "$OLDSTUFF" ] ; then
fi
#
-# delete old temp directories in /tmp (probably only useful on osuosl171+172)
+# delete old temp directories in /tmp (probably only useful on osuosl171+172 & 167[for janitor])
#
echo "$(date -u) - Deleting temporary directories in /tmp, older than 3 days."
-OLDSTUFF=$(find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*)' -exec ls -lad {} \; || true)
+OLDSTUFF=$(find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*|janitor.{8})' -exec ls -lad {} \; || true)
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Old temp directories found in /tmp"
- find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*)' -exec sudo rm -rv --one-file-system {} \; || true
+ find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*|janitor.{8})' -exec sudo rm -rv --one-file-system {} \; || true
echo "These old directories have been deleted."
echo
DIRTY=true
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/88b2a50341f3fee0fece01625bb922cbf3ad2832
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/88b2a50341f3fee0fece01625bb922cbf3ad2832
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/20210528/386d44f0/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list