[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] 2 commits: reproducible_debian_live_build: More debugging

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Jun 7 11:12:01 BST 2022



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


Commits:
3fad2796 by Roland Clobus at 2022-06-07T12:10:12+02:00
reproducible_debian_live_build: More debugging

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

- - - - -
6e7fab1b by Roland Clobus at 2022-06-07T12:11:53+02:00
reproducible_debian_live_build: Cleanup temporary workspace and result directories

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

- - - - -


2 changed files:

- bin/jenkins_node_wrapper.sh
- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/jenkins_node_wrapper.sh
=====================================
@@ -61,6 +61,8 @@ shift
 if [[ "$*" = "/bin/true" ]] ; then
 	exec /bin/true ; croak "Exec failed";
 elif [[ "$1" = scp ]] && [[ "$2" = -p ]]; then
+	set -x
+	echo "Debug: $*"
 	echo "Debug: $@"
 	exec scp -f "$3"; croak "Exec failed";
 elif [[ "$*" = 'rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)' ]] ; then


=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -118,6 +118,30 @@ if [ -d /srv/workspace/chroots/ ] ; then
 	fi
 fi
 
+#
+# delete old temp directories for live-build
+#
+echo "$(date -u) - Deleting temp result directories for live-build, older than 3 days."
+OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -mtime +2 -name "live-build-*" -exec ls -lad {} \; 2>/dev/null|| true)
+if [ ! -z "$OLDSTUFF" ] ; then
+	echo
+	echo "Old temp directories found in $REP_RESULTS"
+	find $REP_RESULTS -maxdepth 1 -type d -mtime +2 -name "live-build-*" -exec rm -rv --one-file-system {} \; || true
+	echo "These old directories have been deleted."
+	echo
+	DIRTY=true
+fi
+echo "$(date -u) - Deleting temp workspace directories for live-build, older than 3 days."
+OLDSTUFF=$(find /srv/workspace/live-build -maxdepth 1 -type d -mtime +2 -name "*.*" -exec ls -lad {} \; 2>/dev/null|| true)
+if [ ! -z "$OLDSTUFF" ] ; then
+	echo
+	echo "Old temp directories found in /srv/workspace/live-build"
+	find /srv/workspace/live-build -maxdepth 1 -type d -mtime +2 -name "*.*" -exec rm -rv --one-file-system {} \; || true
+	echo "These old directories have been deleted."
+	echo
+	DIRTY=true
+fi
+
 #
 # check for working proxy
 #



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b4290bd82d305ae72c75b25880522fc3eeeacbf7...6e7fab1b24a0453f9817aaafbae8260b412f03ed

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/compare/b4290bd82d305ae72c75b25880522fc3eeeacbf7...6e7fab1b24a0453f9817aaafbae8260b412f03ed
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/20220607/d4c3f622/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list