More clonemap.yaml into bash script

Change-Id: I83d2aee128db32545d360e381060cec9d92031b3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2016-02-15 09:30:28 -05:00
parent 950f0b1987
commit 56c1d21517
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +0,0 @@
clonemap:
- name: 'openstack/ansible-role-(.*)'
dest: 'windmill/roles/windmill.\1'

View File

@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash -ex
# Copyright 2015 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@ -13,7 +13,18 @@
# License for the specific language governing permissions and limitations
# under the License.
zuul-cloner -m clonemap.yaml \
CLONEMAP=`mktemp`
function cleanup {
rm -f $CLONEMAP
}
trap cleanup EXIT
cat > $CLONEMAP << EOF
clonemap:
- name: 'openstack/ansible-role-(.*)'
dest: 'windmill/roles/windmill.\1'
EOF
zuul-cloner -m $CLONEMAP \
--cache-dir /opt/git \
git://git.openstack.org \
openstack/ansible-role-diskimage-builder \