From 4c164f08da0476738e71bc51515dcbafc4baa24a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 26 Oct 2017 22:06:49 +0200 Subject: [PATCH] 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 --- roles/write-root-marker/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/write-root-marker/tasks/main.yaml b/roles/write-root-marker/tasks/main.yaml index 2f7b6cbe..567e9db7 100644 --- a/roles/write-root-marker/tasks/main.yaml +++ b/roles/write-root-marker/tasks/main.yaml @@ -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 }}"