# Pastebin WlgUkh4n commit fe8800e4afcf233819b55cf463070f1bf5873dbe Author: Mohammed Naser Date: Sat Nov 9 16:19:11 2019 +0800 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. diff --git a/roles/build-test-packages/tasks/main.yml b/roles/build-test-packages/tasks/main.yml index 71fd7928..b7a8c204 100644 --- a/roles/build-test-packages/tasks/main.yml +++ b/roles/build-test-packages/tasks/main.yml @@ -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: >