[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian live-build: cleanup the same way we cleanup the rest

Holger Levsen (@holger) gitlab at salsa.debian.org
Mon Jun 13 12:45:10 BST 2022



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


Commits:
e71e3cf1 by Holger Levsen at 2022-06-13T13:44:51+02:00
reproducible Debian live-build: cleanup the same way we cleanup the rest

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

- - - - -


2 changed files:

- bin/reproducible_maintenance.sh
- hosts/common/etc/sudoers.d/jenkins


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -126,7 +126,8 @@ OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*"
 if [ ! -z "$OLDSTUFF" ] ; then
 	echo
 	echo "Old temp directories for live-build found in $REP_RESULTS"
-	find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*" -exec sudo rm -rv --one-file-system {} \; || true
+	echo -n "$OLDSTUFF"
+	find $REP_RESULTS -maxdepth 1 -type d -mtime +0 -name "live-build-*" -exec sudo rm -rf --one-file-system {} \; || true
 	echo "These old temp directories for live-build have been deleted."
 	echo
 	DIRTY=true
@@ -136,7 +137,8 @@ OLDSTUFF=$(find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*
 if [ ! -z "$OLDSTUFF" ] ; then
 	echo
 	echo "Old temp workspace directories for live-build found in /srv/workspace/live-build"
-	find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*.*" -exec sudo rm -rfv --one-file-system {} \; || true
+	echo -n "$OLDSTUFF"
+	find /srv/workspace/live-build -maxdepth 1 -type d -mtime +0 -name "*.*" -exec sudo rm -rf --one-file-system {} \; || true
 	echo "These old temp workspace directories have been deleted."
 	echo
 	DIRTY=true


=====================================
hosts/common/etc/sudoers.d/jenkins
=====================================
@@ -22,6 +22,7 @@ jenkins ALL=  \
 	/bin/rm -rf --one-file-system /chroots/*, \
 	/bin/rm -rf --one-file-system /schroots/*, \
 	/bin/rm -rf --one-file-system /srv/workspace/pbuilder/*, \
+	/bin/rm -rf --one-file-system /srv/workspace/live-build*, \
 	/bin/rm -rf --one-file-system /var/lib/sbuild/build/*, \
 	/bin/rm -rf --one-file-system /var/lib/schroot/union/*, \
 	/bin/rm -rf --one-file-system /tmp/*, \



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/e71e3cf16f0c75f61baed3043fc37dfc2d171616
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/20220613/5b2a7609/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list