Skip to content
Snippets Groups Projects
Commit 4e1e814f authored by qweqweasdasd's avatar qweqweasdasd
Browse files

Fix python command line

parent 0f30d8f9
No related branches found
No related tags found
No related merge requests found
...@@ -71,22 +71,16 @@ ...@@ -71,22 +71,16 @@
command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}" command: python3 /home/gmp/script.py "{{ endpoints_to_scan }}" "{{ paas_ci_workdir + '/dep.json'}}" "{{ paas_ci_workdir }}"
register: scan_output register: scan_output
- name: get report - name: display all reports
command: cat "{{ paas_ci_workdir + '/*report.txt' }}" ansible.builtin.debug: var=item
register: report_output with_file:
- "{{ paas_ci_workdir + '/*reports.txt'}}"
- name: show report
debug:
var: report_output
- name: get severity
command: cat "{{ paas_ci_workdir + '/severity.txt' }}"
register: severity_output
- name: show severity
debug:
var: severity_output
- name: display all severities
ansible.builtin.debug: var=item
with_file:
- "{{ paas_ci_workdir + '/*severity.txt'}}"
- name: Get scan outputs (if successful) - name: Get scan outputs (if successful)
assert: assert:
that: that:
...@@ -94,7 +88,6 @@ ...@@ -94,7 +88,6 @@
fail_msg: "TEST FAILED - deployment uuid: {{ deployment.uuid }}, status: {{ deployment.status }}" fail_msg: "TEST FAILED - deployment uuid: {{ deployment.uuid }}, status: {{ deployment.status }}"
success_msg: "TEST PASSED - deployment uuid: {{ deployment.uuid }}, status: {{ deployment.status }}, outputs: {{ deployment.outputs }}" success_msg: "TEST PASSED - deployment uuid: {{ deployment.uuid }}, status: {{ deployment.status }}, outputs: {{ deployment.outputs }}"
when: paas_ci_test_step == 'scan' when: paas_ci_test_step == 'scan'
- block: - block:
......
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