From f8bc1ccb85f95436b83c0506c1dff123412b95b6 Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Wed, 3 Apr 2019 12:56:57 -0500 Subject: [PATCH] [fix] Fix post pipeline image publish - Set defaults so the Post Pipeline can successfully build images Change-Id: I4d50e503b888c140433635090bddae96700fec0b --- tools/gate/playbooks/docker-image-build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/gate/playbooks/docker-image-build.yaml b/tools/gate/playbooks/docker-image-build.yaml index df489f9a..6749dac4 100644 --- a/tools/gate/playbooks/docker-image-build.yaml +++ b/tools/gate/playbooks/docker-image-build.yaml @@ -30,10 +30,10 @@ - name: Determine tags shell: echo '{{ tags | to_json }}' | python3 {{ zuul.project.src_dir }}/tools/image_tags.py environment: - BRANCH: "{{ zuul.branch }}" - CHANGE: "{{ zuul.change }}" + BRANCH: "{{ zuul.branch | default('') }}" + CHANGE: "{{ zuul.change | default('') }}" COMMIT: "{{ zuul.newrev | default('') }}" - PATCHSET: "{{ zuul.patchset }}" + PATCHSET: "{{ zuul.patchset | default('') }}" register: image_tags - name: Debug computed tags