Skip to content

Commit

Permalink
retry git action until it completes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Sep 14, 2023
1 parent c2c84db commit e6f54c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roles/app/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
# Slow things down. SSH Hosts can throttle you if you clone too fast.
throttle: 1

# Retry git checkout. Git servers might block us for cloning so fast.
retries: 10
delay: 4
until: "git_results is not failed"

# On idempotent test runs, any changes to the working copy cause failure.
# This can happen when build scripts are run.
# To allow molecule idempotency to pass, this tag is added.
Expand Down

0 comments on commit e6f54c7

Please sign in to comment.