Fix buildimage jobs to use new process
When switching to new yaml based image builds, the delorean
settings are no longer used, because the delorean-repo element
is not included on the images.
Instead, we need to configure the repos on the host, and export
them using DIB_YUM_REPO_CONF var
# Basic Deployment (CLI)
# http://docs.openstack.org/developer/tripleo-docs/basic_deployment/basic_deployment_cli.html
- export DELOREAN_REPO_FILE="delorean.repo"
-
- # set the correct build repo
case "$ZUUL_BRANCH" in
- "stable/newton") export DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-newton/current/" ;;
- "stable/ocata") export DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-ocata/current/" ;;
- *) export DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-master/current-tripleo/" ;;
+ "stable/newton")
+ DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-newton/current"
+ DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-newton"
+ ;;
+ "stable/ocata")
+ DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-ocata/current"
+ DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7-ocata"
+ ;;
+ *)
+ DELOREAN_REPO_URL="https://trunk.rdoproject.org/centos7-master/current-tripleo"
+ DELOREAN_DEPS_URL="https://trunk.rdoproject.org/centos7"
+ ;;
+
esac
+ # setup the repos
+ sudo yum clean metadata
+ curl -L ${{DELOREAN_DEPS_URL}}/delorean-deps.repo -o /etc/yum.repos.d/delorean-deps.repo
+ curl -L ${{DELOREAN_REPO_URL}}/delorean.repo -o /etc/yum.repos.d/delorean.repo
+ export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*"
# if we are on master, install from source
# otherwise, install from requirements
