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