From 43f05710a5046930e5b201e0c1635acdec86ab45 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 11 Jun 2016 13:01:53 +0200 Subject: reproducible debian: check whether both build nodes are up before starting the build --- bin/reproducible_build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index 20d5f7fb..b692c40c 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -658,6 +658,14 @@ check_node_is_up() { set -e } +check_nodes_are_up() { + local SLEEPTIME=30 + get_node_ssh_port $NODE1 + check_node_is_up $NODE1 $PORT $SLEEPTIME + get_node_ssh_port $NODE2 + check_node_is_up $NODE2 $PORT $SLEEPTIME +} + remote_build() { local BUILDNR=$1 local NODE=$2 @@ -805,6 +813,7 @@ fi # # main - only used in master-mode # +check_nodes_are_up delay_start choose_package # defines SUITE, PKGID, SRCPACKAGE, SAVE_ARTIFACTS, NOTIFY get_source_package -- cgit v1.2.3-70-g09d2