97d5602faa
This is so that we can call it in the pre playbook for emitting info. As part of doing this, use include_role to run it from upload-logs as it always wants to be used there. Change-Id: Ibd7d6bdb6275d052bcef2af068882e9b2876ef83
10 lines
405 B
YAML
10 lines
405 B
YAML
- 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.job }}/{{ zuul.build[: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.job }}/{{ zuul.build[:7] }}"
|