build-test-packages: add retries for git clones

It's possible that GitHub might be having issues during a CI run
which results in the clone failing making the entire job fail.

Given that a failure in cloning can easily be retried with no
consequences, let's do that to avoid failing the entire job.

Change-Id: I8d1bad8d453c61ac113a0bab3529392cbffaf75a
This commit is contained in:
Mohammed Naser 2019-11-09 16:19:11 +08:00 committed by Sagi Shnaidman
parent c284e75183
commit 8435281809
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@
repo: '{{ artg_rdoinfo_repo_url }}'
dest: '{{ build_repo_dir }}/DLRN/rdoinfo'
version: 'master'
register: _git_clone
until: _git_clone is success
retries: 3
delay: 5
- name: Use local {{ ansible_distribution }} mirror if available
shell: >