Improve tripleo nodepool image build efficiency.

Turns out there is a cache of git trees built. We can use that to
avoid some clones. There are more that can be saved - this is the low
hanging fruit (with a bug files and linked for the harder stuff).

Change-Id: Ib720db7b963a314ad28ef4287d7965c5c30f0883
This commit is contained in:
Robert Collins 2014-01-17 07:10:22 +13:00
parent 22f2a8218c
commit e6dc5821f5
2 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@
export DEVSTACK_GATE_EXERCISES=0 export DEVSTACK_GATE_EXERCISES=0
export GEARDSERVER=138.35.77.19 export GEARDSERVER=138.35.77.19
function gate_hook { function gate_hook {
bash -xe /home/jenkins/tripleo/tripleo-ci/toci_gate_test.sh bash -xe /opt/git/openstack-infra/tripleo-ci/toci_gate_test.sh
} }
export -f gate_hook export -f gate_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh

View File

@ -35,9 +35,9 @@ mkdir -p ~/tripleo
export TRIPLEO_ROOT=~/tripleo export TRIPLEO_ROOT=~/tripleo
cd ~/tripleo cd ~/tripleo
git clone https://review.openstack.org/p/openstack-infra/tripleo-ci # XXX: Note that this is redundant with the cached copies in /opt/git.
git clone https://review.openstack.org/p/openstack/tripleo-incubator # see https://bugs.launchpad.net/openstack-ci/+bug/1269889
bash tripleo-incubator/scripts/pull-tools bash /opt/git/openstack/tripleo-incubator/scripts/pull-tools
# Instead of running pull-tools, we'll eventually want to get the # Instead of running pull-tools, we'll eventually want to get the
# refresh-env script working: # refresh-env script working:
# source tripleo-incubator/scripts/refresh-env ~/tripleo # source tripleo-incubator/scripts/refresh-env ~/tripleo