Merge "gzip console log before uploading it"

This commit is contained in:
Jenkins 2017-07-20 22:33:05 +00:00 committed by Gerrit Code Review
commit 1c56827125

View File

@ -19,4 +19,18 @@
synchronize:
src: "{{ zuul.executor.log_root }}/"
dest: "{{zuul_logserver_root}}/{{ log_path }}/"
rsync_opts:
- "--exclude=job-output.txt"
no_log: true
# After this point there are no more logs
- name: gzip console log
delegate_to: localhost
archive:
path: "{{ zuul.executor.log_root }}/job-output.txt"
- name: Upload console log
synchronize:
src: "{{ zuul.executor.log_root }}/job-output.txt.gz"
dest: "{{zuul_logserver_root}}/{{ log_path }}/job-output.txt.gz"
verify_host: true