Browse Source

(zuul) Fix image publish job

- Fix issue in post pipeline image publish job introduced
  by Ansible update

Change-Id: Ia97f2927980f5ee5c2d5adf23a5a016b8d3b1c9f
Scott Hussey 2 weeks ago
parent
commit
7ff21610a5
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tools/gate/roles/build-images/tasks/airship-shipyard.yaml

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

@@ -26,10 +26,10 @@
26 26
 - name: Determine tags
27 27
   shell: echo '{{ tags | to_json }}' | python {{ zuul.project.src_dir }}/tools/image_tags.py
28 28
   environment:
29
-    BRANCH: "{{ zuul.branch }}"
30
-    CHANGE: "{{ zuul.change }}"
29
+    BRANCH: "{{ zuul.branch | default('') }}"
30
+    CHANGE: "{{ zuul.change | default('') }}"
31 31
     COMMIT: "{{ zuul.newrev | default('') }}"
32
-    PATCHSET: "{{ zuul.patchset }}"
32
+    PATCHSET: "{{ zuul.patchset | default('') }}"
33 33
   register: image_tags
34 34
 
35 35
 - name: Debug computed tags

Loading…
Cancel
Save