base-test: Check that regional mirror is online

It is possible for our regional mirror to be offline, for some random
reason. If so, fail the job in pre, so zuul will retry the job
(hopefully in a different region).

Change-Id: I9bd9e551930e5fb88bf9bb3156c59568cee3fa89
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-11-29 12:06:31 -05:00 committed by Clark Boylan
parent a0f5065dc7
commit 920d3b42db

View File

@ -37,3 +37,8 @@
- role: fetch-zuul-cloner
destination: "/usr/zuul-env/bin/zuul-cloner"
repo_src_dir: "/home/zuul/src/git.openstack.org"
pre_tasks:
- name: Check that regional mirror is online
uri:
url: "http://{{ zuul_site_mirror_fqdn }}"