[Git][qa/jenkins.debian.net][master] reproducible Debian: when slaying all builds on a node, also cleanup build directories

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Oct 24 15:53:26 BST 2023



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


Commits:
357c8120 by Holger Levsen at 2023-10-24T16:53:06+02:00
reproducible Debian: when slaying all builds on a node, also cleanup build directories

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

- - - - -


1 changed file:

- bin/reproducible_slay.sh


Changes:

=====================================
bin/reproducible_slay.sh
=====================================
@@ -14,4 +14,10 @@ pgrep -u 1111,2222
 # only slay jenkins on the build nodes…
 if [ "$HOSTNAME" != "jenkins" ] ; then
 	sudo slay jenkins
+else
+	# cleanup build dirs on nodes
+	REP_RESULTS=/srv/reproducible-results
+	for PATTERN in 'tmp.*' 'r-b-build.*' ; do
+		find $REP_RESULTS/rbuild-debian -maxdepth 1 -type d -name "$PATTERN" -exec rm -rv --one-file-system {} \; || true
+	done
 fi



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/357c8120dd1a496e817e2539ffe225aaf4d4a9cb
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/20231024/6bf07b40/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list