swift/tools/playbooks/cors/post.yaml
Tim Burke 1afad5c492 cors-tests: Increase timeouts for setup operations
Drive-bys:
* Only copy outputs when there are outputs to copy
* Print tracebacks when there's an issue running a selenium driver

Change-Id: I0807af4525a13a30baf27ada40eeabe311b44296
2021-03-11 17:33:48 -08:00

39 lines
1.1 KiB
YAML

- 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