Retry connection tests even when ECONNREFUSED

This commit is contained in:
Joe Groocock 2018-03-16 15:52:07 +00:00
parent 4077e9402a
commit ec8a389e7c
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -28,7 +28,7 @@ pipeline:
- CON_NAME=$(docker run --rm -d plex-dev)
- timeout -t 15 docker logs $$CON_NAME &
- sleep 10 # Wait for plex to start!
- curl -sSL --retry-max-time 30 --max-time 5 --retry 10 --retry-delay 5
- curl -sSL --retry-max-time 30 --max-time 5 --retry 10 --retry-delay 5 --retry-connrefused
$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $$CON_NAME):32400/identity
| tee /dev/stderr
| xmlstarlet sel -t -v "/MediaContainer/@version"