Skip to content

Commit

Permalink
fail much faster when nexus doesn't come up
Browse files Browse the repository at this point in the history
  • Loading branch information
iliana committed Jul 27, 2022
1 parent 7b68ef6 commit 9ca00de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/buildomat/jobs/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down

0 comments on commit 9ca00de

Please sign in to comment.