[Git][qa/jenkins.debian.net][master] reproducible debian: fixup last commit

Mattia Rizzolo (@mattia) gitlab at salsa.debian.org
Mon Mar 11 15:05:45 GMT 2024



Mattia Rizzolo pushed to branch master at Debian QA / jenkins.debian.net


Commits:
c7274d64 by Mattia Rizzolo at 2024-03-11T16:04:33+01:00
reproducible debian: fixup last commit

handle empty lines
only consider the first element of the line (worker name), not the whole line

Signed-off-by: Mattia Rizzolo <mattia at debian.org>

- - - - -


1 changed file:

- bin/reproducible_build_service.sh


Changes:

=====================================
bin/reproducible_build_service.sh
=====================================
@@ -20,8 +20,12 @@ startup_workers() {
 
 	WORKER_BIN=/srv/jenkins/bin/reproducible_worker.sh
 
-	grep -v '^#' /srv/jenkins/bin/reproducible_build_workers | \
+	awk '!/^\s*#/ {print $1}' /srv/jenkins/bin/reproducible_build_workers | \
 		while read -r WORKER_NAME ; do
+			if [ -z "$WORKER_NAME" ]; then
+				# empty line…
+				continue
+			fi
 			# sleep up to 2.3 seconds (additionally to the random sleep reproducible_build.sh does anyway)
 			#
 			/bin/sleep "$(echo "scale=1 ; $(shuf -i 1-23 -n 1)/10" | bc )"



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c7274d6464e499c45c3fc86d3eec9d2861918e47
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/20240311/2fb6da34/attachment.htm>


More information about the Qa-jenkins-scm mailing list