From 39119d5895c6c75b2cd0cab37d199bf7287efe97 Mon Sep 17 00:00:00 2001 From: Aaron Sheffield Date: Fri, 22 Mar 2019 10:45:05 -0500 Subject: [PATCH] Updating Docker Gate use of zuul.newrev - Zuul updated ansible to 2.7, no longer uses missing variables. - Using an if to try and address. Change-Id: I547097efc9ed2b2ca308cf394fe14dab16abacc4 --- tools/gate/playbooks/docker-image-build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gate/playbooks/docker-image-build.yaml b/tools/gate/playbooks/docker-image-build.yaml index 0fe524e8..e2a5f0b5 100644 --- a/tools/gate/playbooks/docker-image-build.yaml +++ b/tools/gate/playbooks/docker-image-build.yaml @@ -32,7 +32,7 @@ environment: BRANCH: "{{ zuul.branch }}" CHANGE: "{{ zuul.change }}" - COMMIT: "{{ zuul.newrev }}" + COMMIT: "{{ zuul.newrev | default('') }}" PATCHSET: "{{ zuul.patchset }}" register: image_tags @@ -116,7 +116,7 @@ DOCKER_REGISTRY: "quay.io" IMAGE_PREFIX: "airshipit" IMAGE_TAG: "{{ item }}" - COMMIT: "{{ zuul.newrev }}" + COMMIT: "{{ zuul.newrev | default('') }}" PUSH_IMAGE: "true" with_items: "{{ image_tags.stdout_lines }}"