Skip to content

Commit

Permalink
[ci][docker] Add retries for docker pull (#12306)
Browse files Browse the repository at this point in the history
  • Loading branch information
driazati authored Aug 4, 2022
1 parent 5d0367a commit 485bfaf
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 485bfaf

Please sign in to comment.