From df7b5d4ab65bad604903b719fbde90354cf52504 Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Wed, 27 Jul 2022 22:14:41 +0000 Subject: [PATCH] fail much faster when nexus doesn't come up --- .github/buildomat/jobs/deploy.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/buildomat/jobs/deploy.sh b/.github/buildomat/jobs/deploy.sh index fcf63dd0ab..a12da12dbe 100644 --- a/.github/buildomat/jobs/deploy.sh +++ b/.github/buildomat/jobs/deploy.sh @@ -144,12 +144,10 @@ while :; do exit 1 fi - if curl --fail-with-body -i http://192.168.1.20/spoof_login; then + if curl --max-time 1 --fail-with-body -i http://192.168.1.20/spoof_login; then printf 'ok; nexus became available!\n' break fi - - sleep 1 done #