File: post.yml

package info (click to toggle)
python-os-faults 0.2.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 696 kB
  • sloc: python: 4,797; sh: 54; makefile: 24
file content (23 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (3)
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