Merge "Add zuul_return call into upload-logs role"
This commit is contained in:
commit
ee2ad1a7e1
@ -4,6 +4,10 @@ This uploads logs to a static webserver using SSH.
|
|||||||
|
|
||||||
**Role Variables**
|
**Role Variables**
|
||||||
|
|
||||||
|
.. zuul:rolevar:: zuul_log_url
|
||||||
|
|
||||||
|
Base URL where logs are to be found.
|
||||||
|
|
||||||
.. zuul:rolevar:: zuul_logserver_root
|
.. zuul:rolevar:: zuul_logserver_root
|
||||||
:default: /srv/static/logs
|
:default: /srv/static/logs
|
||||||
|
|
||||||
|
@ -34,3 +34,12 @@
|
|||||||
src: "{{ zuul.executor.log_root }}/job-output.txt.gz"
|
src: "{{ zuul.executor.log_root }}/job-output.txt.gz"
|
||||||
dest: "{{zuul_logserver_root}}/{{ log_path }}/job-output.txt.gz"
|
dest: "{{zuul_logserver_root}}/{{ log_path }}/job-output.txt.gz"
|
||||||
verify_host: true
|
verify_host: true
|
||||||
|
|
||||||
|
post_tasks:
|
||||||
|
- name: Return log URL to Zuul
|
||||||
|
delegate_to: localhost
|
||||||
|
zuul_return:
|
||||||
|
data:
|
||||||
|
zuul:
|
||||||
|
log_url: "{{ zuul_log_url }}/{{ log_path }}/"
|
||||||
|
when: zuul_log_url is defined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user