Browse Source

(zuul) Fix image publish job

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

Change-Id: I23d8621901e225fb7b134b276156f248720b248f
Scott Hussey 2 weeks ago
parent
commit
66ab47386f
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      tools/zuul/playbooks/docker-image-build.yaml

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

@@ -60,10 +60,10 @@
60 60
     - name: Determine tags
61 61
       shell: echo '{{ tags | to_json }}' | python {{ zuul.project.src_dir }}/tools/image_tags.py
62 62
       environment:
63
-        BRANCH: "{{ zuul.branch }}"
64
-        CHANGE: "{{ zuul.change }}"
63
+        BRANCH: "{{ zuul.branch | default('') }}"
64
+        CHANGE: "{{ zuul.change | default('')  }}"
65 65
         COMMIT: "{{ zuul.newrev | default('') }}"
66
-        PATCHSET: "{{ zuul.patchset }}"
66
+        PATCHSET: "{{ zuul.patchset | default('')  }}"
67 67
       register: image_tags
68 68
 
69 69
     - name: Debug computed tags

Loading…
Cancel
Save