diff --git a/roles/upload-git-mirror/tasks/main.yaml b/roles/upload-git-mirror/tasks/main.yaml index 3965c5cdf..1de834b4d 100644 --- a/roles/upload-git-mirror/tasks/main.yaml +++ b/roles/upload-git-mirror/tasks/main.yaml @@ -38,15 +38,10 @@ chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" tags: - skip_ansible_lint - ignore_errors: zuul.newrev is defined - - - name: Check if the mirror contains the desired reference - command: git fetch {{ git_mirror_credentials.user }}@{{ git_mirror_credentials.host }}:{{ git_mirror_repository }} {{ zuul.newrev }} - args: - chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}" - tags: - - skip_ansible_lint - when: zuul.newrev is defined + register: result + retries: 3 + delay: 5 + until: result is not failed always: # Registered variables below are only used for integration testing