Add job.name to upload-logs role
When browsing the http server, it is helpful to have the job name in the directory structure. This also restores logs.o.o URLs to zuulv2.5 syntax. Change-Id: Ib7fb2f56ca18fb1d8060bc35a83a85fad693a533 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
1c6a35b7f1
commit
69fccd007b
|
@ -1,12 +1,12 @@
|
|||
- name: Set log path for a change
|
||||
when: zuul.change is defined
|
||||
set_fact:
|
||||
log_path: "{{ zuul.change[-2:] }}/{{ zuul.change }}/{{ zuul.patchset }}/{{ zuul.pipeline }}/{{ zuul.uuid[:7] }}"
|
||||
log_path: "{{ zuul.change[-2:] }}/{{ zuul.change }}/{{ zuul.patchset }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.uuid[:7] }}"
|
||||
|
||||
- name: Set log path for a ref update
|
||||
when: zuul.newrev is defined
|
||||
set_fact:
|
||||
log_path: "{{ zuul.newrev[-2:] }}/{{ zuul.newrev }}/{{ zuul.pipeline }}/{{ zuul.uuid[:7] }}"
|
||||
log_path: "{{ zuul.newrev[-2:] }}/{{ zuul.newrev }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.uuid[:7] }}"
|
||||
|
||||
- name: Create log directories
|
||||
file:
|
||||
|
|
Loading…
Reference in New Issue