Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions commands/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ fi

if [[ "${BUILDKITE_PLUGIN_DOCKER_ALWAYS_PULL:-false}" =~ ^(true|on|1)$ ]] ; then
echo "--- :docker: Pulling ${image}"
if ! retry "${BUILDKITE_PLUGIN_DOCKER_PULL_RETRIES:-3}" \
docker pull "${image}" ; then
retry_exit_status="$?"
retry "${BUILDKITE_PLUGIN_DOCKER_PULL_RETRIES:-3}" docker pull "${image}"
retry_exit_status="$?"
if [ $retry_exit_status -ne 0 ] ; then
echo "!!! :docker: Pull failed."
exit "$retry_exit_status"
fi
Expand Down
2 changes: 1 addition & 1 deletion lib/shared.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function retry {
local attempts=1

until "$@"; do
retry_exit_status=$?
local retry_exit_status=$?
echo "Exited with $retry_exit_status"
if (( retries == "0" )); then
return $retry_exit_status
Expand Down