Make version of tempest configurable

This patch makes tempest version configurable so we can override
it in CI for DLRN promotion jobs for stable branches.

There have been some backwards incompatible changes in tempest
and ceilometer ( https://review.openstack.org/#/c/395506/ ) not
tagged yet in stable/newton. In order to get p-o-i pass with this
commits we need to use an updated version of tempest.

Change-Id: Ifb37a5a3a809c8a94d055d9cdc2b880e1ec9a115
This commit is contained in:
Alfredo Moralejo 2016-11-12 16:07:55 +01:00
parent e921a3a01a
commit e7bd64b108

View File

@ -24,6 +24,7 @@ export HIERA_CONFIG=${HIERA_CONFIG:-${SCRIPT_DIR}/hiera/hiera.yaml}
export MANAGE_HIERA=${MANAGE_HIERA:-true}
export PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --color=false --test --trace --hiera_config ${HIERA_CONFIG} --logdest ${WORKSPACE}/puppet.log"
export DISTRO=$(lsb_release -c -s)
export TEMPEST_VERSION=${TEMPEST_VERSION:-'origin/master'}
# NOTE(pabelanger): Setup facter to know about AFS mirror.
if [ -f /etc/nodepool/provider ]; then
@ -98,6 +99,10 @@ else
fi
fi
pushd /tmp/openstack/tempest
git reset --hard $TEMPEST_VERSION
popd
# NOTE(pabelanger): We cache cirros images on our jenkins slaves, check if it
# exists.
if [ -f ~/cache/files/cirros-0.3.4-x86_64-disk.img ]; then