Implement puppet-openstack-integration-checkout JJB builder

Implement puppet-openstack-integration-checkout JJB builder that will
checkout openstack/puppet-openstack-intgration in workspace root
so other-requirements.txt will be found by bindep.

Change-Id: Id05e9e9e24e94680ca642e0a83738cf1b5572d6a
This commit is contained in:
Emilien Macchi 2016-04-15 11:02:41 -04:00
parent 909f00dd44
commit c491c144bd

@ -1,3 +1,21 @@
- builder:
name: puppet-openstack-integration-checkout
builders:
- shell: |
#!/bin/bash -xe
CLONEMAP=`mktemp`
function cleanup {
rm -f $CLONEMAP
}
trap cleanup EXIT
cat > $CLONEMAP << EOF
clonemap:
- name: openstack/puppet-openstack-integration
dest: .
EOF
/usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
git://git.openstack.org openstack/puppet-openstack-integration
- job-template:
name: 'gate-{name}-puppet-unit-{puppet_version}-{node}'
node: '{node}'
@ -191,8 +209,8 @@
- print-template-name:
template-name: "{template-name}"
- link-logs
- zuul-clone:
project: openstack/puppet-openstack-integration
- puppet-openstack-integration-checkout
- install-distro-packages
- shell: |
#!/bin/bash -xe
cd openstack/puppet-openstack-integration
@ -216,8 +234,7 @@
- print-template-name:
template-name: "{template-name}"
- link-logs
- zuul-clone:
project: openstack/puppet-openstack-integration
- puppet-openstack-integration-checkout
- install-distro-packages
- puppet-prepare-node
- shell: |