X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fopendaylight-infra-stack.sh;h=e1e398ab05395f568510efa5272ed674a5979ed8;hb=17e405080849c714581eaeb98ad4b20dae1f3ea9;hp=a63d0ea4ba083efe34176eb072ce25d81aca008d;hpb=7e9491bb72105fa920e96e92458f45d3ec740a6f;p=releng%2Fbuilder.git diff --git a/jjb/opendaylight-infra-stack.sh b/jjb/opendaylight-infra-stack.sh index a63d0ea4b..e1e398ab0 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,15 +9,6 @@ # 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 @@ -25,6 +16,9 @@ else cd /builder/openstack-hot || exit 1 fi +# openstack cli is failing with the decorator package +sudo pip install --upgrade --quiet decorator + JOB_SUM=$(echo "$JOB_NAME" | sum | awk '{{ print $1 }}') VM_NAME="$JOB_SUM-$BUILD_NUMBER"