[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: delete worker console.log's older than a day

Holger Levsen gitlab at salsa.debian.org
Mon Jul 30 08:24:21 BST 2018


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


Commits:
415feb9e by Holger Levsen at 2018-07-30T07:24:11Z
reproducible Debian: delete worker console.log's older than a day

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

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -196,13 +196,13 @@ set -e
 # delete build services logfiles
 if [ "$HOSTNAME" = "$MAINNODE" ] ; then
 	if [ -d /var/lib/jenkins/userContent/reproducible/debian/build_service/ ] ; then
-		echo "$(date -u) - Deleting logfiles from build services directories, older than 2 days."
-		OLDSTUFF=$(find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +1 -exec ls -lad {} \; || true)
+		echo "$(date -u) - Deleting logfiles from build services directories, older than a day."
+		OLDSTUFF=$(find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +0 -exec ls -lad {} \; || true)
 		if [ ! -z "$OLDSTUFF" ] ; then
 			echo
 			echo "Old logfiles cleaned in /var/lib/jenkins/userContent/reproducible/debian/build_service/"
 			echo -n "$OLDSTUFF"
-			find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +1 -exec rm -rf --one-file-system {} \; || true
+			find /var/lib/jenkins/userContent/reproducible/debian/build_service/ -maxdepth 2 -regex '.*/[0-9]+' -type d -mtime +0 -exec rm -rf --one-file-system {} \; || true
 			echo
 		fi
 	fi



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/415feb9efd5f3503371ea147644588209b2db0e2

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/415feb9efd5f3503371ea147644588209b2db0e2
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/20180730/99de581e/attachment.html>


More information about the Qa-jenkins-scm mailing list