More clonemap.yaml into bash script
Change-Id: I83d2aee128db32545d360e381060cec9d92031b3 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
950f0b1987
commit
56c1d21517
|
@ -1,3 +0,0 @@
|
|||
clonemap:
|
||||
- name: 'openstack/ansible-role-(.*)'
|
||||
dest: 'windmill/roles/windmill.\1'
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue