blob: 4bc84bdcdc0bd4e2804a8d403a6bdba6e6ee69d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
- hosts: all
become: true
tasks:
- name: Check for geckodriver log
stat:
path: '{{ ansible_env.HOME }}/geckodriver.log'
register: geckodriver_output
- name: Copy geckodriver log from worker nodes to executor node
synchronize:
src: '{{ ansible_env.HOME }}/geckodriver.log'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
when: geckodriver_output.stat.exists == true
- name: Check for CORS test output
stat:
path: '{{ ansible_env.HOME }}/cors-test-results.txt'
register: test_output
- name: Copy CORS tests output from worker nodes to executor node
synchronize:
src: '{{ ansible_env.HOME }}/cors-test-results.txt'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
when: test_output.stat.exists == true
- zuul_return:
data:
zuul:
artifacts:
- name: CORS test results
url: cors-test-results.txt
when: test_output.stat.exists == true
|