From 7272721b114d908bd283b8eafb55ed3c391196b1 Mon Sep 17 00:00:00 2001 From: "gioacchino.vino" <gioacchino.vino@infn.it> Date: Wed, 6 Dec 2023 12:03:07 +0100 Subject: [PATCH] Increased log level --- tasks/2-scan.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/tasks/2-scan.yml b/tasks/2-scan.yml index 006584b..9404f4c 100644 --- a/tasks/2-scan.yml +++ b/tasks/2-scan.yml @@ -28,8 +28,20 @@ - name: Show dep json file debug: - msg: "{{lookup('file', item.path)}}" - with_items: "{{ paas_ci_workdir + '/dep.json'}}" + msg: "{{ lookup('file', item.path) }}" + with_items: "{{ paas_ci_workdir + '/dep.json' }}" + +- name: Load depdep log + command: cat "{{ paas_ci_workdir + '/dep.json' }}" + register: dep_json + +- name: import depdep_log + set_fact: + imported_depdep_log: "{{ dep_json.stdout }}" + +- name: Show depdep log + debug: + var: imported_depdep_log - name: Run scan command: "{{ paas_ci_workdir + '/scan.py' }} --endpoint-keys {{ paas_ci_test.endpoints_to_scan }} --dep-json {{ paas_ci_workdir + '/dep.json'}} --output-dir {{ paas_ci_workdir }}" @@ -37,7 +49,7 @@ - name: Scan logs debug: - msg: "{{lookup('file', item.path)}}" + msg: "{{ lookup('file', item.path) }}" with_items: "{{ paas_ci_workdir + 'scan.log' }}" - name: Show scan output @@ -46,12 +58,12 @@ - name: Find report files find: - paths: "{{paas_ci_workdir}}" + paths: "{{ paas_ci_workdir }}" patterns: '*infn.it-report.txt' register: report_files - name: read summary report file - shell: cat "{{ paas_ci_workdir + '/summary-report.json'}}" + shell: cat "{{ paas_ci_workdir + '/summary-report.json' }}" register: summary_report - name: import summary_report @@ -60,12 +72,12 @@ - name: Show reports debug: - msg: "{{lookup('file', item.path)}}" - with_items: "{{report_files.files}}" + msg: "{{ lookup('file', item.path) }}" + with_items: "{{ report_files.files }}" when: summary_report_json.global == 'NOK' - name: Load scans log - command: cat "{{ paas_ci_workdir + '/scans.log'}}" + command: cat "{{ paas_ci_workdir + '/scan.log' }}" register: scans_log when: summary_report_json.global == 'NOK' -- GitLab