#!/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 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/26 && 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


--- 
+++ 
@@ -9,7 +9,7 @@
 popd
 
 pushd tripleo-quickstart-extras
-git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/36/414336/26 && git checkout FETCH_HEAD
+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
Update quickstart-extras patch for build-images role

We have a bit of a chicken egg problem with setting up a gate for
the build-images role before having the build-images role merged.

We will use this to make sure the latest patchset does not break
our promotion job before merging the build-images role, and then
removing this checked out patch via:

https://review.rdoproject.org/r/5091

Lucky number 27?

Change-Id: I49ebe288d26bc5d10bb6358d631e5dc10cf90891
