Commit 8cf7c66f authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: fix a bug (not recognizing offline nodes) in _worker.sh...


reproducible Debian: fix a bug (not recognizing offline nodes) in _worker.sh which was migated by robustness in _build.sh

Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent 7b275c0a
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -30,8 +30,7 @@ notify_log_of_failure() {
		END
}

# endless loop
while true ; do
main_loop() {
	#
	# check if we really should be running
	#
@@ -60,8 +59,9 @@ while true ; do
	if [ -f "$JENKINS_OFFLINE_LIST" ]; then
		for n in "$NODE1" "$NODE2"; do
			if grep -q "$n" "$JENKINS_OFFLINE_LIST"; then
				echo "$n is currently marked as offline, stopping the worker."
				break
				echo "$n is currently marked as offline, sleeping an hour before trying again."
				sleep 60.1337m
				exit
			fi
		done
	fi
@@ -102,5 +102,10 @@ while true ; do
	echo

	[ "$RETCODE" -eq 0 ] || notify_log_of_failure
}

# main
while true ; do
	main_loop
done
+7 −12
Original line number Diff line number Diff line
@@ -2,16 +2,11 @@
# No builds will be dispatched to those nodes, and the nodes will be marked
# as offline in the jenkins UI.

# FIXME: the latter is needed by start-agent.sh, the former probably elsewhere
# FIXME: do debug (only the former should be enough, after all
# FIXME )grep -q example-armhf-rb` should trigger on the former line as well)
#example-armhf-rb.debian.net
#example-armhf-rb
ff4a-armhf-rb.debian.net
ff4a
ff64a-armhf-rb.debian.net
ff64a
jtx1c-armhf-rb.debian.net
jtx1c
p64b-armhf-rb.debian.net
p64b
#codethink-sled16-arm64
#profitbricks-build16-i386
#
ff4a-armhf-rb
ff64a-armhf-rb
jtx1c-armhf-rb
p64b-armhf-rb