Skip to content

Commit

Permalink
[CI] Add timeouts for retries for docker image build (#195915)
Browse files Browse the repository at this point in the history
## Summary
The generated version of the docker image builder script didn't have
timeouts between retries, so a temporary outage on `docker.elastic.co`
would cause a docker pull error, failing the build (see:
https://buildkite.com/elastic/kibana-artifacts-snapshot/builds/4845#01927b40-43f9-471e-9e2c-407320fac978)

This PR adds a fix 15s per retry to the docker build runner.
  • Loading branch information
delanni authored Oct 14, 2024
1 parent 45a9cf0 commit 1bd8144
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ function generator({
echo "Docker pull successful."
break
else
echo "Docker pull unsuccessful, attempt '$attempt'."
echo "Docker pull unsuccessful, attempt '$attempt'. Retrying in 15s"
sleep 15
fi
done
Expand Down

0 comments on commit 1bd8144

Please sign in to comment.