#!/bin/bash
# This is temporary, but needed to checki out the needed patches for the new image build role.
# We need it to happen before we get a node from cico so that the correct changes end up in
# the quickstart venv
set -eux

# TODO(trown): Actually merge needed patches for new image building role.
pushd tripleo-quickstart
popd

pushd tripleo-quickstart-extras
git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/27 && git checkout FETCH_HEAD
popd

cp $WORKSPACE/tripleo-quickstart/requirements.txt $WORKSPACE/local-requires.txt
echo "file://$WORKSPACE/tripleo-quickstart-extras/#egg=tripleo-quickstart-extras" >> local-requires.txt

bash $WORKSPACE/tripleo-quickstart/quickstart.sh \
    --working-dir $WORKSPACE/.quickstart \
    --no-clone \
    --clean \
    --bootstrap \
    --requirements $WORKSPACE/local-requires.txt \
    --playbook noop.yml \
    localhost


#!/bin/bash
# This can be used when we need some temporary quick fix for CI while we wait for the change
# to get merged upstream.
# We need it to happen before we get a node from cico so that the correct changes end up in
# the quickstart venv
set -eux

pushd $WORKSPACE/tripleo-quickstart
# Add git checkouts for tripleo-quickstart here
popd

pushd $WORKSPACE/tripleo-quickstart-extras
# Add git checkouts for tripleo-quickstart-extras here
popd

cp $WORKSPACE/tripleo-quickstart/requirements.txt $WORKSPACE/local-requires.txt
echo "file://$WORKSPACE/tripleo-quickstart-extras/#egg=tripleo-quickstart-extras" >> $WORKSPACE/local-requires.txt

bash $WORKSPACE/tripleo-quickstart/quickstart.sh \
    --working-dir $WORKSPACE/.quickstart \
    --no-clone \
    --clean \
    --bootstrap \
    --requirements $WORKSPACE/local-requires.txt \
    --playbook noop.yml \
    localhost


Remove patches required for build-images role
Remove patches required for build-images role

The checkout-patches.sh script is left in place to make it simple
to add any "hotfix" patches we need in RDO CI later.

Change-Id: I6336f8c43f0128139cbaa1cbe4c551bb5260012b
