Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
[ci][docker] Add retries for docker pull (apache#12306)
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati authored and xinetzone committed Nov 25, 2022
1 parent 31654b0 commit 92d4819
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 25 additions & 2 deletions Jenkinsfile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion ci/jenkins/Prepare.groovy.j2
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ def docker_init(image) {
ecr_pull(image)
} else {
sh(
script: "docker pull ${image}",
script: """
set -eux
{{ m.bash_retry() }}
retry 3 docker pull ${image}
""",
label: 'Pull docker image',
)
}
Expand Down

0 comments on commit 92d4819

Please sign in to comment.