summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan V <logan2211@gmail.com>2018-09-15 09:32:49 -0600
committerLogan V <logan2211@gmail.com>2018-09-15 09:32:49 -0600
commit9bd63f360d870fe60079cd6888713cc12cbdf5de (patch)
tree2f6f005069783eae9be14eda2282366a490f7bb8
parentcd9fd667480f51ba92c0556916b6b55c4f8bc152 (diff)
Upload the logs folder to the executor
Notes
Notes (review): Code-Review+2: Logan V <logan2211@gmail.com> Workflow+1: Logan V <logan2211@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sat, 15 Sep 2018 15:33:29 +0000 Reviewed-on: https://review.openstack.org/602863 Project: openstack/limestone-ci-cloud Branch: refs/heads/master
-rw-r--r--.zuul.d/playbooks-deploy/post.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/.zuul.d/playbooks-deploy/post.yml b/.zuul.d/playbooks-deploy/post.yml
index 4b23dea..7df2819 100644
--- a/.zuul.d/playbooks-deploy/post.yml
+++ b/.zuul.d/playbooks-deploy/post.yml
@@ -22,3 +22,21 @@
22 register: test_gate_job_exit 22 register: test_gate_job_exit
23 - debug: 23 - debug:
24 msg: "{{ test_gate_job_exit.stdout }}" 24 msg: "{{ test_gate_job_exit.stdout }}"
25 - name: Check whether a logs folder exists
26 stat:
27 path: "{{ lsn_ci_src_path }}/logs"
28 get_attributes: no
29 get_checksum: no
30 get_md5: no
31 get_mime: no
32 register: logs_folder
33 - name: Copy logs back to the executor
34 synchronize:
35 src: "{{ lsn_ci_src_path }}/logs"
36 dest: "{{ zuul.executor.log_root }}/"
37 mode: pull
38 rsync_opts:
39 - "--quiet"
40 when:
41 - logs_folder.stat is defined
42 - logs_folder.stat.exists | bool