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 28, 2022
1 parent 0cdc4a8 commit df7b5d4
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 df7b5d4

Please sign in to comment.