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

Merge branch 'debug_paas_ci' into 'main'

Debug paas ci

See merge request !89
parents 662f15e3 bfbfcf61
No related branches found
No related tags found
1 merge request!89Debug paas ci
......@@ -16,7 +16,8 @@ parser = argparse.ArgumentParser(
parser.add_argument(
"--endpoint-keys",
help="Orchestrator output endpoints to scan (endpoints1,endpoints2)"
help="Orchestrator output endpoints to scan (endpoints1,endpoints2)",
default="None"
)
parser.add_argument(
"--dep-json",
......
......@@ -3,9 +3,6 @@
- name: Set SSH tunel
command: ssh -o StrictHostKeyChecking=no -f -N -L localhost:9390:scans.cloud.infn.it:9390 jenkins@scans.cloud.infn.it
- debug:
var: paas_ci_test.endpoints_to_scan
- name: Copy scan script
copy:
src: files/scan.py
......@@ -38,27 +35,19 @@
debug:
var: imported_depdep_log
- name: Show BEFORE paas_ci_test.endpoints_to_scan log
- name: Show paas_ci_test.endpoints_to_scan log
debug:
var: paas_ci_test.endpoints_to_scan
- name: Fail if "bar" is undefined
set_fact:
paas_ci_test.endpoints_to_scan: "None"
- name: Run scan without endpoints_to_scan variable
command: "{{ paas_ci_workdir + '/scan.py' }} --dep-json {{ paas_ci_workdir + '/dep.json'}} --output-dir {{ paas_ci_workdir }}"
register: scan_output
when: paas_ci_test.endpoints_to_scan is undefined
- name: Show AFTER paas_ci_test.endpoints_to_scan log
debug:
var: paas_ci_test.endpoints_to_scan
- name: Run scan
- name: Run scan with endpoints_to_scan variable
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 }}"
register: scan_output
- name: Scan logs
debug:
msg: "{{ lookup('file', item.path) }}"
with_items: "{{ paas_ci_workdir + 'scan.log' }}"
when: paas_ci_test.endpoints_to_scan is defined
- name: Show scan output
debug:
......
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