Browse Source

(zuul) Fix image publish post pipeline

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

Change-Id: I184bbdda3cf496ce652e72264423b83f43be5603
Scott Hussey 2 weeks ago
parent
commit
e44ad39421
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

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

Loading…
Cancel
Save