gzip console log before uploading it

Maybe let's not be storing uncompressed log files, k?

Change-Id: I3ca2299d59e2dbb976d742a5d4d1ddf6acc16ffb
This commit is contained in:
Monty Taylor 2017-07-13 18:55:54 -05:00
parent db1699a6fc
commit 08524b447b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594

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