Skip to content
Snippets Groups Projects
Commit 63486f0f authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Improved report summary in jenkins

parent 4d7e3938
No related branches found
No related tags found
1 merge request!55Debug paas ci
......@@ -18,14 +18,9 @@
- name: Find report files
find:
paths: "{{paas_ci_workdir}}"
patterns: '*report.txt'
patterns: '*infn.it-report.txt'
register: report_files
# - name: Show reports
# debug:
# msg: "{{lookup('file', item.path)}}"
# with_items: "{{report_files.files}}"
- name: read summary report file
shell: cat "{{ paas_ci_workdir + '/summary-report.json'}}"
register: summary_report
......@@ -34,10 +29,17 @@
set_fact:
summary_report_json: "{{ summary_report.stdout | from_json }}"
- debug:
- name: Show reports
debug:
msg: "{{lookup('file', item.path)}}"
with_items: "{{report_files.files}}"
when: summary_report_json.global == 'NOK'
- name: Detailed report summary
debug:
var: summary_report_json
- name: Get scan outputs (if successful)
- name: Report Summary
assert:
that:
- summary_report_json.global == 'OK'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment