summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2019-02-15 10:25:02 -0800
committerJames E. Blair <jeblair@redhat.com>2019-02-15 10:33:36 -0800
commit404ff1d97b1335f42207ca37521ade629ceaf1d6 (patch)
tree9475d6e41547a57bfccf2435d2a47dc56827dc14
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
Notes (review): Code-Review+2: Clark Boylan <cboylan@sapwetik.org> Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 15 Feb 2019 19:30:09 +0000 Reviewed-on: https://review.openstack.org/637245 Project: openstack-infra/zuul-jobs Branch: refs/heads/master
-rw-r--r--roles/push-to-intermediate-registry/tasks/main.yaml5
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 }}"