X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-stack.sh;h=2a3e0cee5881477660daeab66e597321bcc54d88;hb=6737d651d0b72d9f2a4a127bee152da831d0a917;hp=af5d2fa13ed7e5bc1034242eb184af610d349717;hpb=1780688fdd5df75f4cd5c43d71b84e5feac4a205;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-stack.sh b/jjb/opendaylight-infra-stack.sh index af5d2fa13..2a3e0cee5 100644 --- a/jjb/opendaylight-infra-stack.sh +++ b/jjb/opendaylight-infra-stack.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -9,16 +9,22 @@ # http://www.eclipse.org/legal/epl-v10.html ############################################################################## -virtualenv "/tmp/v/openstack" -# shellcheck source=/tmp/v/openstack/bin/activate disable=SC1091 -source "/tmp/v/openstack/bin/activate" -pip install --upgrade "pip<10.0.0" setuptools -# hardcoding cmd2 version as the most recent version seems to be broken. -# reference: https://pypi.org/project/cmd2/#history -pip install --upgrade cmd2==0.8.5 python-openstackclient python-heatclient -pip freeze +# TODO: Remove the if-statement once we have fully migrated to /opt/ciman +if [ -d "/opt/ciman/openstack-hot" ]; then + cd /opt/ciman/openstack-hot || exit 1 +else + cd /builder/openstack-hot || exit 1 +fi + +# shellcheck disable=SC1090 +. ~/lf-env.sh -cd /builder/openstack-hot || exit 1 +lf-activate-venv --python python3 \ + decorator \ + python-heatclient \ + python-openstackclient \ + python-magnumclient \ + yq JOB_SUM=$(echo "$JOB_NAME" | sum | awk '{{ print $1 }}') VM_NAME="$JOB_SUM-$BUILD_NUMBER"