Fetch all Validations, json and log files with CI role

Fetch the validation.json files and other validations log file
to improve debuging and failures investigation.
Right now, we collect only ansible artifacts.

Change-Id: Icd4536cea0d83910594a52175fc31fe9a36b4659
This commit is contained in:
matbu 2021-05-03 21:47:11 +02:00 committed by mbu
parent 54093ee5cb
commit cc8369cfec
1 changed files with 18 additions and 0 deletions

View File

@ -23,3 +23,21 @@
src: "artifacts"
loop_control:
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