7e04128a8b
We capitalize the first word in task names in general - and when you follow a log and suddenly see a single lower-case one flying along... Fix those names that I could find and that are not variables etc. Change-Id: I9ccde577413270d49fd790c41767b859366dc2f6
36 lines
1.6 KiB
YAML
36 lines
1.6 KiB
YAML
- name: Fileserver friendly log path specifications
|
|
when: not zuul_log_path_shard_build
|
|
block:
|
|
- name: Set log path for a change
|
|
when: zuul.change is defined
|
|
set_fact:
|
|
zuul_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:
|
|
zuul_log_path: "{{ zuul.newrev[:2] }}/{{ zuul.newrev }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.build[:7] }}"
|
|
|
|
- name: Set log path for a periodic job
|
|
when: zuul.change is not defined and zuul.newrev is not defined
|
|
set_fact:
|
|
zuul_log_path: "{{ zuul.pipeline }}/{{ zuul.project.canonical_name }}/{{ zuul.branch }}/{{ zuul.job }}/{{ zuul.build[:7] }}"
|
|
|
|
- name: Object store friendly log path specifications
|
|
when: zuul_log_path_shard_build
|
|
block:
|
|
- name: Set log path for a change
|
|
when: zuul.change is defined
|
|
set_fact:
|
|
zuul_log_path: "{{ zuul.build[:3] }}/{{ 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:
|
|
zuul_log_path: "{{ zuul.build[:3] }}/{{ zuul.newrev }}/{{ zuul.pipeline }}/{{ zuul.job }}/{{ zuul.build[:7] }}"
|
|
|
|
- name: Set log path for a periodic job
|
|
when: zuul.change is not defined and zuul.newrev is not defined
|
|
set_fact:
|
|
zuul_log_path: "{{ zuul.build[:3] }}/{{ zuul.pipeline }}/{{ zuul.project.canonical_name }}/{{ zuul.branch }}/{{ zuul.job }}/{{ zuul.build[:7] }}"
|