Hande write-root-marker in tag pipeline

The tag-pipeline does not set zuul.branch, so define it to an empty
string if it's unset so that the script passes.

Change-Id: Iddcf722abec5c6a69f40cb109e5563a698ab349c
This commit is contained in:
Andreas Jaeger 2017-10-26 22:06:49 +02:00
parent 681db9cf29
commit 4c164f08da
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
- name: Write marker text
copy:
dest: "{{ root_marker_dir }}/.root-marker"
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"
content: "Project: {{ zuul.project.name }} Branch: {{ zuul.branch | default('') }} Build: {{ zuul.build }} Revision: {{ zuul.ref }}"