Merge "Fetch all Validations, json and log files with CI role"

This commit is contained in:
Zuul 2021-05-05 01:19:14 +00:00 committed by Gerrit Code Review
commit c9e4f37707
1 changed files with 18 additions and 0 deletions

View File

@ -23,3 +23,21 @@
src: "artifacts" src: "artifacts"
loop_control: loop_control:
loop_var: vf_output loop_var: vf_output
- name: Find validations data
find:
paths: "{{ output_dir }}"
patterns: "*.json,*.log"
register: validation_json
- name: Collect Validation logs
synchronize:
dest: "{{ log_path }}/validations-logs/"
mode: pull
src: "{{ logs.path }}"
verify_host: true
owner: false
group: false
loop: "{{ validation_json.files }}"
loop_control:
loop_var: logs