summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/playbooks/cors/post.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/playbooks/cors/post.yaml b/tools/playbooks/cors/post.yaml
index b0e4ba438..4bc84bdcd 100644
--- a/tools/playbooks/cors/post.yaml
+++ b/tools/playbooks/cors/post.yaml
@@ -1,6 +1,11 @@
- 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'
@@ -8,6 +13,12 @@
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:
@@ -16,6 +27,7 @@
mode: pull
copy_links: true
verify_host: true
+ when: test_output.stat.exists == true
- zuul_return:
data:
@@ -23,3 +35,4 @@
artifacts:
- name: CORS test results
url: cors-test-results.txt
+ when: test_output.stat.exists == true