Select the right repo for stable branches

It was currently only using stable branch for mitaka. Add the
same checks for newton and ocata.

Change-Id: I6c4eb890578ea2f062f73a5a4ab20d67fc070641
This commit is contained in:
Yolanda Robla 2017-03-29 14:52:18 +02:00
parent 6dc0ae3122
commit d2825d0f26
1 changed files with 7 additions and 5 deletions

View File

@ -110,11 +110,13 @@
export USE_DELOREAN_TRUNK=1
export DELOREAN_REPO_FILE="delorean.repo"
if [ "$ZUUL_BRANCH" == "stable/mitaka" ]; then
export DELOREAN_TRUNK_REPO="https://trunk.rdoproject.org/centos7-mitaka/current/"
else
export DELOREAN_TRUNK_REPO="https://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-master-tripleo/"
fi
# set the correct build repo
case "$ZUUL_BRANCH" in
"stable/mitaka") export DELOREAN_TRUNK_REPO="https://trunk.rdoproject.org/centos7-mitaka/current/" ;;
"stable/newton") export DELOREAN_TRUNK_REPO="https://trunk.rdoproject.org/centos7-newton/current/" ;;
"stable/ocata") export DELOREAN_TRUNK_REPO="https://trunk.rdoproject.org/centos7-ocata/current/" ;;
*) export DELOREAN_TRUNK_REPO="https://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-master-tripleo/" ;;
esac
tox -evenv -- pip install $WORKSPACE/diskimage-builder
tox -evenv -- openstack overcloud image build --type {image-name} --elements-path="$ELEMENTS"