Merge "Add delete_after to swift upload role"

This commit is contained in:
Zuul 2018-07-31 17:02:59 +00:00 committed by Gerrit Code Review
commit f8c4fb0661
2 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,12 @@ This uploads logs to an OpenStack Object Store (Swift) container.
If the container is created, should it be created with global read
ACLs. If the container already exists, it will not be modified.
.. zuul:rolevar:: zuul_log_delete_after
:default: 15552000
Number of seconds to delete objects after upload. Default is 6 months
(15552000 seconds) and if set to 0 X-Delete-After will not be set.
.. zuul:rolevar:: zuul_log_path
:default: Generated by the role `set-zuul-log-path-fact`

View File

@ -26,6 +26,7 @@
prefix: "{{ zuul_log_path }}"
files:
- "{{ zuul.executor.log_root }}/"
delete_after: "{{zuul_log_delete_after | default(omit) }}"
register: upload_results
- name: Return log URL to Zuul