Skip to content

Commit df7b5d4

Browse files
committed
fail much faster when nexus doesn't come up
1 parent 0cdc4a8 commit df7b5d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/buildomat/jobs/deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,10 @@ while :; do
144144
exit 1
145145
fi
146146

147-
if curl --fail-with-body -i http://192.168.1.20/spoof_login; then
147+
if curl --max-time 1 --fail-with-body -i http://192.168.1.20/spoof_login; then
148148
printf 'ok; nexus became available!\n'
149149
break
150150
fi
151-
152-
sleep 1
153151
done
154152

155153
#

0 commit comments

Comments
 (0)