1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
---
- hosts: all
vars:
- test_results_path: "/opt/stack/os-faults/.tox/{{tox_envlist}}/log/pytest_results.html"
tasks:
- name: Check whether test results file exists
stat:
path: "{{ test_results_path }}"
register: test_results
- name: Copy job results
become: yes
synchronize:
src: "{{ test_results_path }}"
dest: "{{ zuul.executor.log_root }}"
mode: pull
copy_links: true
verify_host: true
rsync_opts:
- "--include=/**"
- "--include=*/"
when: test_results.stat.exists
|