We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b040848 commit da12b9eCopy full SHA for da12b9e
2 files changed
commands/run.sh
@@ -348,8 +348,9 @@ fi
348
349
if [[ "${BUILDKITE_PLUGIN_DOCKER_ALWAYS_PULL:-false}" =~ ^(true|on|1)$ ]] ; then
350
echo "--- :docker: Pulling ${image}"
351
- if ! retry "${BUILDKITE_PLUGIN_DOCKER_PULL_RETRIES:-3}" \
352
- docker pull "${image}" ; then
+ retry "${BUILDKITE_PLUGIN_DOCKER_PULL_RETRIES:-3}" docker pull "${image}"
+ retry_exit_status="$?"
353
+ if [ $retry_exit_status -ne 0 ] ; then
354
echo "!!! :docker: Pull failed."
355
exit "$retry_exit_status"
356
fi
lib/shared.bash
@@ -8,7 +8,7 @@ function retry {
8
local attempts=1
9
10
until "$@"; do
11
- retry_exit_status=$?
+ local retry_exit_status=$?
12
echo "Exited with $retry_exit_status"
13
if (( retries == "0" )); then
14
return $retry_exit_status
0 commit comments