diff options
authorJames E. Blair <>2019-02-15 10:25:02 -0800
committerJames E. Blair <>2019-02-15 10:33:36 -0800
commit404ff1d97b1335f42207ca37521ade629ceaf1d6 (patch)
parent2a3d69c8beda2599780dde5e96e1b1cb8f9a3872 (diff)
Load buildset registry data from zuul_return
The push-to-intermediate-registry role is meant to be used in the post playbook of a job which most likely started the buildset registry in its pre-playbook. The buildset_registry variable is returned to zuul and therefore available to child jobs, but not to further playbooks in this job. Therefore, load the variable back in to memory here. We may add this functionality directly to Zuul, in which case this can be removed later. Change-Id: I81899a9be92789fc1e5858f985eac41871b9d87a
Notes (review): Code-Review+2: Clark Boylan <> Code-Review+2: James E. Blair <> Workflow+1: James E. Blair <> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 15 Feb 2019 19:30:09 +0000 Reviewed-on: Project: openstack-infra/zuul-jobs Branch: refs/heads/master
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/push-to-intermediate-registry/tasks/main.yaml b/roles/push-to-intermediate-registry/tasks/main.yaml
index 680e2ff..42b3288 100644
--- a/roles/push-to-intermediate-registry/tasks/main.yaml
+++ b/roles/push-to-intermediate-registry/tasks/main.yaml
@@ -1,3 +1,8 @@
1# This can be removed if we add this functionality to Zuul directly
2- name: Load information from zuul_return
3 when: buildset_registry is not defined
4 set_fact:
5 buildset_registry: "{{ (lookup('file', zuul.executor.work_root + '/results.json') | from_json)['buildset_registry'] }}"
1- name: Push image to intermediate registry 6- name: Push image to intermediate registry
2 include_tasks: push.yaml 7 include_tasks: push.yaml
3 loop: "{{ docker_images }}" 8 loop: "{{ docker_images }}"