Browse Source

(zuul) Fix image publish job

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

Change-Id: Ifc73524a8bcd1863b374815aeb553df71ba4a568
Scott Hussey 2 weeks ago
parent
commit
27c9e2f00c
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tools/gate/playbooks/docker-image-build.yaml

+ 3
- 3
tools/gate/playbooks/docker-image-build.yaml View File

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

Loading…
Cancel
Save