Browse Source

[fix] Fix post pipeline image publish

- Set defaults so the Post Pipeline can successfully build images

Change-Id: I4d50e503b888c140433635090bddae96700fec0b
Scott Hussey 2 weeks ago
parent
commit
f8bc1ccb85
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 }}' | python3 {{ 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