Skip to content

Commit a4996ae

Browse files
p-datadogp
andauthored
Increase curl retries to attempt to fix transient network failures (#4347)
Co-authored-by: Oleg Pudeyev <code@olegp.name>
1 parent 0932e4a commit a4996ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ orbs:
240240
command: |
241241
DOCKERIZE_URL="https://github.com/powerman/dockerize/releases/download/v0.17.0/dockerize-$(uname -s | tr '[:upper:]' '[:lower:]')-$(arch | sed 's/aarch64/arm64/')"
242242
DOCKERIZE_URL: $DOCKERIZE_URL
243-
curl --silent --show-error --location --fail --retry 3 --output /usr/local/bin/dockerize $DOCKERIZE_URL
243+
set -e
244+
curl --silent --show-error --location --fail --retry 5 --output /usr/local/bin/dockerize $DOCKERIZE_URL
244245
chmod +x /usr/local/bin/dockerize
245246
dockerize --version
246247
# Wait for containers to start
@@ -275,11 +276,13 @@ orbs:
275276
name: Upload JUnit reports to Datadog
276277
when: always
277278
command: |
279+
set -e
280+
278281
sed -i 's/file="\.\//file="/g' tmp/rspec/*.xml
279282
280283
ls -l tmp/rspec/*.xml
281284
282-
curl -L --fail --retry 3 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
285+
curl -L --fail --retry 5 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
283286
284287
datadog-ci version
285288

0 commit comments

Comments
 (0)