Browse Source

Upload the logs folder to the executor

Change-Id: Ifcaa59da0b441b91691b669313f6e6a272779291
changes/63/602863/1
Logan V 9 months ago
parent
commit
9bd63f360d
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      .zuul.d/playbooks-deploy/post.yml

+ 18
- 0
.zuul.d/playbooks-deploy/post.yml View File

@@ -22,3 +22,21 @@
22 22
       register: test_gate_job_exit
23 23
     - debug:
24 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

Loading…
Cancel
Save