base-jobs/roles/write-root-marker/tasks/main.yaml
Andreas Jaeger 13d35686eb Make names in promote job unique
Update task names so that it's clear which task is doing what and thus
we avoid e.g twice "Set target directory" and you need to check whether that
is correct.

Add missing task name for one include_role.

Change-Id: I550307bdfdf2815ce7b5001bd89928311ce8cc02
2019-08-21 09:51:25 +02:00

11 lines
492 B
YAML

- name: Write root marker if zuul.branch
when: "zuul.branch is defined"
copy:
dest: "{{ root_marker_dir }}/.root-marker"
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
- name: Write root marker if zuul.tag
when: "zuul.tag is defined"
copy:
dest: "{{ root_marker_dir }}/.root-marker"
content: "Project: {{ zuul.project.name }} Tag: {{ zuul.tag }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"