Merge "upload-git-mirror: check after mirror operation"
This commit is contained in:
@@ -38,6 +38,16 @@
|
|||||||
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
|
||||||
tags:
|
tags:
|
||||||
- skip_ansible_lint
|
- 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
|
||||||
|
|
||||||
always:
|
always:
|
||||||
# Registered variables below are only used for integration testing
|
# Registered variables below are only used for integration testing
|
||||||
- name: Remove SSH private key from disk
|
- name: Remove SSH private key from disk
|
||||||
|
|||||||
Reference in New Issue
Block a user