[Git][qa/jenkins.debian.net][master] fixup: rdn: make script more robust

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Apr 17 18:06:08 BST 2025



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


Commits:
998f3ba8 by Holger Levsen at 2025-04-17T19:05:34+02:00
fixup: rdn: make script more robust

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

- - - - -


1 changed file:

- bin/debrebuild_cache_limiter.sh


Changes:

=====================================
bin/debrebuild_cache_limiter.sh
=====================================
@@ -7,7 +7,7 @@ CACHE=~rebuilderd/cache
 
 if [ ! -d $CACHE ] ; then
 	echo "$CACHE does not exist."
-	exit 1
+	exit 0
 fi
 
 LIMIT=100
@@ -16,12 +16,9 @@ case $HOSTNAME in
 	codethink*)		LIMIT=12  ;;
 	osuosl*-amd64)		LIMIT=333 ;;
 	riscv64*)		LIMIT=180 ;;
-	*)		echo "Limit for $HOSTNAME not defined."
-			exit 1 ;;
+	*)			;;
 esac
 
-
-
 SIZE=$(du -sh $CACHE | grep G | cut -d 'G' -f 1||echo 0)
 
 if [ $SIZE -gt $LIMIT ] ; then



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/998f3ba8e1ba40b2baf436398f9fda8d0a171f06
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/20250417/366fc940/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list