Browse Source

Updating Docker Gate use of zuul.newrev

- Zuul updated ansible to 2.7, no longer allows missing variables.
- Using default value when it isn't available.

Based on Aaron Sheffield's PS for Pegleg: https://review.openstack.org/#/c/645631/

Change-Id: I02495bc793021b429e0be62ecac0ed45e930484c
Aaron Sheffield 4 weeks ago
parent
commit
12de088b9d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tools/gate/roles/build-images/tasks/airship-shipyard.yaml

+ 2
- 2
tools/gate/roles/build-images/tasks/airship-shipyard.yaml View File

@@ -28,7 +28,7 @@
28 28
   environment:
29 29
     BRANCH: "{{ zuul.branch }}"
30 30
     CHANGE: "{{ zuul.change }}"
31
-    COMMIT: "{{ zuul.newrev }}"
31
+    COMMIT: "{{ zuul.newrev | default('') }}"
32 32
     PATCHSET: "{{ zuul.patchset }}"
33 33
   register: image_tags
34 34
 
@@ -111,7 +111,7 @@
111 111
           DOCKER_REGISTRY: "quay.io"
112 112
           IMAGE_PREFIX: "airshipit"
113 113
           IMAGE_TAG: "{{ item }}"
114
-          COMMIT: "{{ zuul.newrev }}"
114
+          COMMIT: "{{ zuul.newrev | default('') }}"
115 115
           PUSH_IMAGE: "true"
116 116
       with_items: "{{ image_tags.stdout_lines }}"
117 117
 

Loading…
Cancel
Save