Upload the logs folder to the executor

Change-Id: Ifcaa59da0b441b91691b669313f6e6a272779291
This commit is contained in:
Logan V 2018-09-15 09:32:49 -06:00
parent cd9fd66748
commit 9bd63f360d
1 changed files with 18 additions and 0 deletions

View File

@ -22,3 +22,21 @@
register: test_gate_job_exit
- debug:
msg: "{{ test_gate_job_exit.stdout }}"
- name: Check whether a logs folder exists
stat:
path: "{{ lsn_ci_src_path }}/logs"
get_attributes: no
get_checksum: no
get_md5: no
get_mime: no
register: logs_folder
- name: Copy logs back to the executor
synchronize:
src: "{{ lsn_ci_src_path }}/logs"
dest: "{{ zuul.executor.log_root }}/"
mode: pull
rsync_opts:
- "--quiet"
when:
- logs_folder.stat is defined
- logs_folder.stat.exists | bool