[Git][qa/jenkins.debian.net][master] jenkins nodes: refactoring, also cleanup old netbsd and coreboot chroots

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu May 15 13:51:51 BST 2025



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


Commits:
e6813f57 by Holger Levsen at 2025-05-15T14:51:43+02:00
jenkins nodes: refactoring, also cleanup old netbsd and coreboot chroots

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

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -119,16 +119,18 @@ if [ -d /srv/workspace/chroots/ ] ; then
 		echo
 		DIRTY=true
 	fi
-	echo "$(date -u) - Looking for chroots used as openwrt build directories, older than 3 days."
-	OLDSTUFF=$(find /srv/workspace/chroots/ -maxdepth 2 -name 'rbuild-openwrt-build-*' -type d -mtime +2 -exec ls -lad {} \; || true)
-	if [ -n "$OLDSTUFF" ] ; then
-		echo
-		echo 'Old rbuild-openwrt-build-* directories found in /srv/workspace/chroots/, deleting them now:'
-		echo -n "$OLDSTUFF"
-		( find /srv/workspace/chroots/ -maxdepth 2 -name 'rbuild-openwrt-build-*' -type d -mtime +2 -exec sudo rm -rf --one-file-system {} \; ) || true
-		echo
-		DIRTY=true
-	fi
+	for name in 'rbuild-openwrt-build-' 'rbuild-netbsd-build-' 'rbuild-netbsd-build-' ; do
+		echo "$(date -u) - Looking for $name chroot build directories, older than 3 days."
+		OLDSTUFF=$(find /srv/workspace/chroots/ -maxdepth 1 -name "$name*" -type d -mtime +2 -exec ls -lad {} \; || true)
+		if [ -n "$OLDSTUFF" ] ; then
+			echo
+			echo "Old $name* directories found in /srv/workspace/chroots/, deleting them now:"
+			echo -n "$OLDSTUFF"
+			( find /srv/workspace/chroots/ -maxdepth 1 -name "$name*" -type d -mtime +2 -exec sudo rm -rf --one-file-system {} \; ) || true
+			echo
+			DIRTY=true
+		fi
+	done
 fi
 
 #



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e6813f575520d5cd4ca9659eaa563c22bf590bed

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e6813f575520d5cd4ca9659eaa563c22bf590bed
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/20250515/947cb46e/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list