zuul-jobs/roles/generate-log-url/tasks/main.yaml
Monty Taylor 97d5602faa
Split the log_path creation into its own role
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
2017-09-06 18:57:41 -05:00

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] }}"