swift/tools/playbooks/ceph-s3tests/post.yaml
Tim Burke 0bf5474bfa ceph tests: Register output/ceph-s3-summary.log as a job output
Change-Id: I7eed34ab19a97b2c561e4aac8c95a8a5e1689266
2022-04-19 12:16:33 -07:00

27 lines
873 B
YAML

- hosts: all
become: true
tasks:
- name: Check for s3-tests outputs
stat:
path: '{{ ansible_env.HOME }}/s3compat/output'
register: s3_tests_output
- name: Copy s3-tests outputs from worker nodes to executor node
synchronize:
src: '{{ ansible_env.HOME }}/s3compat/output'
dest: '{{ zuul.executor.log_root }}'
mode: pull
copy_links: true
verify_host: true
when: s3_tests_output.stat.exists == true
- name: Check for s3-tests output summary
stat:
path: '{{ ansible_env.HOME }}/s3compat/output/ceph-s3-summary.log'
register: s3_tests_output_summary
- zuul_return:
data:
zuul:
artifacts:
- name: s3compat test summary
url: output/ceph-s3-summary.log
when: s3_tests_output_summary.stat.exists == true