[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Archlinux: cleanup cruft in /tmp

Holger Levsen gitlab at salsa.debian.org
Fri Sep 14 18:11:33 BST 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
710018d0 by Holger Levsen at 2018-09-14T17:11:15Z
reproducible Archlinux: cleanup cruft in /tmp

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -60,7 +60,7 @@ set -e
 #
 # delete old temp directories
 #
-echo "$(date -u) - Deleting temp directories, older than 3 days."
+echo "$(date -u) - Deleting temp directories in $REP_RESULTS/rbuild-debian, older than 3 days."
 OLDSTUFF=$(find $REP_RESULTS/rbuild-debian -maxdepth 1 -type d -mtime +2 -name "tmp.*" -exec ls -lad {} \; || true)
 if [ ! -z "$OLDSTUFF" ] ; then
 	echo
@@ -71,6 +71,20 @@ if [ ! -z "$OLDSTUFF" ] ; then
 	DIRTY=true
 fi
 
+#
+# delete old temp directories in /tmp (probably only useful on profitbricks3+4)
+#
+echo "$(date -u) - Deleting temporary directories in /tmp, older than 3 days."
+OLDSTUFF=$(find /tmp -maxdepth 1 -type d -mtime +2 -name "tmp.*" -o -name "Test*" -o -name "usession-release*" -o -name "*test*" -exec ls -lad {} \; || true)
+if [ ! -z "$OLDSTUFF" ] ; then
+	echo
+	echo "Old temp directories found in /tmp"
+	find /tmp -maxdepth 1 -type d -mtime +2 -name "tmp.*" -o -name "Test*" -o -name "usession-release*" -o -name "*test*" -exec rm -rv {} \; || true
+	echo "These old directories have been deleted."
+	echo
+	DIRTY=true
+fi
+
 #
 # delete old pbuilder build directories
 #



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/710018d0655127794907bcccf5405cda3d9e9d90

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/710018d0655127794907bcccf5405cda3d9e9d90
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/20180914/434f1edd/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list