[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian live: remove images (ment for openqa) sooner, to save...

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Apr 27 20:57:23 BST 2023



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


Commits:
39aa52ba by Holger Levsen at 2023-04-27T21:57:09+02:00
reproducible Debian live: remove images (ment for openqa) sooner, to save (constantly used) diskspace

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

- - - - -


2 changed files:

- bin/reproducible_debian_live_sync_result.sh
- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_debian_live_sync_result.sh
=====================================
@@ -35,7 +35,7 @@ rsync_remote_results() {
         cd $EXTRADIR
         # Generate a warning
         local msg="These generated ISO files have been preserved for your convenience.\n"
-        msg="${msg}They will be available for 24h only, so download them now.\n"
+        msg="${msg}They will be available for a few hours only, so download them now.\n"
         msg="${msg}WARNING: You shouldn't trust the ISO files downloaded from this host, they could contain malware or anything else, including the worst of your fears, packaged nicely as a bootable ISO image."
         log_info "$msg"
         # Place the warning as a heading in the directory view


=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -753,7 +753,7 @@ if [ "$ARCH" != "i386" ] ; then
 	fi
 fi
 
-# remove deabin ci builds artifacts older than a day
+# remove debian ci builds artifacts older than a day
 echo "$(date -u) - Checking for artifacts older than a day."
 ARTIFACTS=$(find $DEBIAN_BASE/artifacts/r00t-me/* -maxdepth 1 -type d -mtime +1 -exec ls -lad {} \; 2>/dev/null|| true)
 if [ -n "$ARTIFACTS" ] ; then
@@ -764,12 +764,12 @@ if [ -n "$ARTIFACTS" ] ; then
 fi
 
 # remove artifacts from the debian live build jobs, older than a day
-echo "$(date -u) - Checking for artifacts from debian live build jobs, that are older than half a day."
-ARTIFACTS=$(find $DEBIAN_BASE/live_build/artifacts/r00t-me/* -maxdepth 1 -type f -mtime +0.5 -exec ls -lad {} \; 2>/dev/null|| true)
+echo "$(date -u) - Checking for artifacts from debian live build jobs, that are older today plus a few hours"
+ARTIFACTS=$(find $DEBIAN_BASE/live_build/artifacts/r00t-me/* -maxdepth 1 -type f -mtime +0.25 -exec ls -lad {} \; 2>/dev/null|| true)
 if [ -n "$ARTIFACTS" ] ; then
 	echo
 	echo "Removed old debian-live artifacts:"
-	find $DEBIAN_BASE/live_build/artifacts/r00t-me/* -maxdepth 1 -type f -mtime +0.5 -exec rm -rv --one-file-system {} \; || true
+	find $DEBIAN_BASE/live_build/artifacts/r00t-me/* -maxdepth 1 -type f -mtime +0.25 -exec rm -v --one-file-system {} \; || true
 	echo
 fi
 



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/39aa52bade760a2cf355f070b9af8e557f0cb4e3
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/20230427/d9300f77/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list