Only clone the minimum needed for Nova / Neutron.
With cloning a single branch, we don't need any history. This substantially speeds up the clones and reduces disk space Change-Id: I5a1753928fdf81f92b34cadf7f5c5c25b72af4aa
This commit is contained in:
parent
d2ae4c2e3e
commit
9748446c4d
|
@ -36,7 +36,7 @@ XS_BUILD=${3:-"90233c"}
|
||||||
XS_PLUGIN_VERSION=${4:-"2015.1"}
|
XS_PLUGIN_VERSION=${4:-"2015.1"}
|
||||||
|
|
||||||
# branch info
|
# branch info
|
||||||
GITBRANCH="origin/stable/$OS_RELEASE"
|
GITBRANCH="stable/$OS_RELEASE"
|
||||||
|
|
||||||
# repository info
|
# repository info
|
||||||
NOVA_GITREPO="https://git.openstack.org/openstack/nova"
|
NOVA_GITREPO="https://git.openstack.org/openstack/nova"
|
||||||
|
@ -78,18 +78,14 @@ which mkisofs || (echo "mkisofs not installed" && exit 1)
|
||||||
# =============================================
|
# =============================================
|
||||||
# Check out rpm packaging repo
|
# Check out rpm packaging repo
|
||||||
rm -rf xenserver-nova-suppack-builder
|
rm -rf xenserver-nova-suppack-builder
|
||||||
git clone $RPM_BUILDER_REPO xenserver-nova-suppack-builder
|
git clone -b $GITBRANCH --single-branch --depth 1 $RPM_BUILDER_REPO xenserver-nova-suppack-builder
|
||||||
pushd xenserver-nova-suppack-builder
|
|
||||||
git checkout -b mos_suppack_builder "$GITBRANCH"
|
|
||||||
popd
|
|
||||||
|
|
||||||
|
|
||||||
# =============================================
|
# =============================================
|
||||||
# Create nova rpm file
|
# Create nova rpm file
|
||||||
rm -rf nova
|
rm -rf nova
|
||||||
git clone "$NOVA_GITREPO" nova
|
git clone -b $GITBRANCH --single-branch --depth 1 "$NOVA_GITREPO" nova
|
||||||
pushd nova
|
pushd nova
|
||||||
git checkout -b mos_nova "$GITBRANCH"
|
|
||||||
# patch xenhost as this file is not merged into this release
|
# patch xenhost as this file is not merged into this release
|
||||||
cp $FUELPLUG_UTILS_ROOT/../plugin_source/deployment_scripts/patchset/xenhost plugins/xenserver/xenapi/etc/xapi.d/plugins/
|
cp $FUELPLUG_UTILS_ROOT/../plugin_source/deployment_scripts/patchset/xenhost plugins/xenserver/xenapi/etc/xapi.d/plugins/
|
||||||
popd
|
popd
|
||||||
|
@ -105,9 +101,8 @@ RPMFILE=$(find $FUELPLUG_UTILS_ROOT -name "openstack-xen-plugins-*.noarch.rpm" -
|
||||||
# =============================================
|
# =============================================
|
||||||
# Create neutron rpm file
|
# Create neutron rpm file
|
||||||
rm -rf neutron
|
rm -rf neutron
|
||||||
git clone "$NEUTRON_GITREPO" neutron
|
git clone -b $GITBRANCH --single-branch --depth 1 "$NEUTRON_GITREPO" neutron
|
||||||
pushd neutron
|
pushd neutron
|
||||||
git checkout -b mos_neutron "$GITBRANCH"
|
|
||||||
cp $FUELPLUG_UTILS_ROOT/../plugin_source/deployment_scripts/patchset/netwrap neutron/plugins/ml2/drivers/openvswitch/agent/xenapi/etc/xapi.d/plugins/
|
cp $FUELPLUG_UTILS_ROOT/../plugin_source/deployment_scripts/patchset/netwrap neutron/plugins/ml2/drivers/openvswitch/agent/xenapi/etc/xapi.d/plugins/
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue