Skip to content

Commit 7fcc8e9

Browse files
mbuechsegtema
andauthored
bugfix: transfer of report.yaml must work with pod as well (#755)
* bugfix: transfer of report.yaml must work with pod as well * fix output directory Signed-off-by: Matthias Büchse <matthias.buechse@cloudandheat.com> Co-authored-by: Artem Goncharov <artem.goncharov@gmail.com>
1 parent e1fcbb1 commit 7fcc8e9

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

playbooks/compliance_check.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,16 @@
33
hosts: all
44
tasks:
55
- name: Run compliance script
6+
# write report.yaml into the proper directory so it will be transferred back by base job
7+
# -- this then works regardless of VM/pod
68
ansible.builtin.command:
7-
cmd: python3 Tests/scs-test-runner.py --config Tests/config.toml --debug run --preset {{ preset }} --output report.yaml
9+
cmd: >
10+
python3 Tests/scs-test-runner.py --config Tests/config.toml --debug
11+
run --preset {{ preset }}
12+
--output "{{ ansible_user_dir }}/zuul-output/artifacts/report.yaml"
813
chdir: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}"
914
changed_when: true
1015

11-
- name: Copy result YAML
12-
ansible.builtin.synchronize:
13-
dest: "{{ zuul.executor.log_root }}/report.yaml"
14-
mode: pull
15-
src: "{{ ansible_user_dir }}/{{ zuul.project.src_dir }}/report.yaml"
16-
verify_host: true
17-
owner: no
18-
group: no
19-
2016
- name: Return artifact URL
2117
zuul_return:
2218
data:

0 commit comments

Comments
 (0)