[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: don't fail maintenance job if there are no old artifacts to delete

Holger Levsen gitlab at salsa.debian.org
Thu Aug 30 21:23:18 BST 2018


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


Commits:
73fda51d by Holger Levsen at 2018-08-30T20:23:10Z
reproducible Debian: don't fail maintenance job if there are no old artifacts to delete

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

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -475,11 +475,11 @@ fi
 
 # remove artifacts older than a day
 echo "$(date -u) - Checking for artifacts older than a day."
-ARTIFACTS=$(find $DEBIAN_BASE/artifacts/* -maxdepth 1 -type d -mtime +1 -exec ls -lad {} \; 2>/dev/null|| true)
+ARTIFACTS=$(find $DEBIAN_BASE/artifacts/r00t-me/* -maxdepth 1 -type d -mtime +1 -exec ls -lad {} \; 2>/dev/null|| true)
 if [ ! -z "$ARTIFACTS" ] ; then
 	echo
 	echo "Removed old artifacts:"
-	find $DEBIAN_BASE/artifacts/* -maxdepth 1 -type d -mtime +1 -exec rm -rv {} \;
+	find $DEBIAN_BASE/artifacts/r00t-me/* -maxdepth 1 -type d -mtime +1 -exec rm -rv {} \;
 	echo
 fi
 



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/73fda51dfd3b04be831e28ba3f644359b208c253

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/73fda51dfd3b04be831e28ba3f644359b208c253
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/20180830/5e94ad80/attachment.html>


More information about the Qa-jenkins-scm mailing list