diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-06-11 13:01:53 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-06-11 13:01:53 +0200 |
commit | 43f05710a5046930e5b201e0c1635acdec86ab45 (patch) | |
tree | 5cdd7f6982fea164afcc3c36e162d6fb824b7e99 | |
parent | 89ee8640f67c5e926a0665799ba65ba82398b7ea (diff) | |
download | jenkins.debian.net-43f05710a5046930e5b201e0c1635acdec86ab45.tar.xz |
reproducible debian: check whether both build nodes are up before starting the build
-rwxr-xr-x | bin/reproducible_build.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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 |