Add required-projects to windmill jobs

Start building out the list of projects we like to be pre checked out
on disk. This avoids the need to hit the network when initially
cloning them.

Change-Id: I0daabe5f9f7c29e8cc98d0dae439b1d147211d5d
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-03-04 18:01:53 -05:00
parent 2077dc6c88
commit 38320fb49f
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 19 additions and 0 deletions

View File

@ -35,6 +35,12 @@
name: openstack.zookeeper
- zuul: openstack/ansible-role-zuul
name: openstack.zuul
required-projects:
- openstack/diskimage-builder
- openstack-infra/gear
- openstack-infra/nodepool
- openstack-infra/shade
- openstack-infra/zuul
- job:
name: windmill-centos-7

View File

@ -5,3 +5,16 @@
# - mirror-workspace-git-repos
- mirror-info
- configure-mirrors
tasks:
# NOTE(pabelanger): Because use-cache-repos force the delete of origin, the
# git module from ansible will not setup origin correctly. This is like a
# bug in ansible, and should be discussed upstream.
- name: Add origin to local git repos
command: "git remote add origin https://{{ item.canonical_name }}"
args:
chdir: "{{ ansible_user_dir }}/{{ item.src_dir}}"
with_items: "{{ zuul.projects.values() | list }}"
# ANSIBLE0006: git remote is not supported by ansible module
tags:
- skip_ansible_lint