Skip to content

Commit

Permalink
retry curl to codecov.io as a workaround for connection timeout issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrigoruk authored Jul 13, 2020
1 parent 9a7fd24 commit 17c0327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hooks/post-command
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ main() {
fi

local ci_env
ci_env=$(bash <(curl -s https://codecov.io/env))
ci_env=$(bash <(curl -s -S --connect-timeout 10 --retry 3 --retry-delay 10 https://codecov.io/env))

set +e
local exit_code
docker run \
Expand All @@ -56,7 +57,7 @@ main() {
-it \
--rm \
buildpack-deps:jessie-scm \
bash -c "bash <(curl -s https://codecov.io/bash) ${args[*]:-}"
bash -c "bash <(curl -s -S --connect-timeout 10 --retry 3 --retry-delay 10 https://codecov.io/bash) ${args[*]:-}"
exit_code="$?"
set -e
popd >/dev/null
Expand Down

0 comments on commit 17c0327

Please sign in to comment.