From 7163c9bfac715d9b92fe46ac3272c02f470d13fd Mon Sep 17 00:00:00 2001 From: Aric Gardner Date: Fri, 24 May 2019 17:37:06 -0400 Subject: Fix virtualenv virtualenv $WORKSPACE/venv created a python3.4 environment I have installed python36u on the builer and symlinked /usr/bin/python3 to /usr/bin/python36 I have tested this change and it worked for the broken job: https://build.opnfv.org/ci/job/releng-release-hunter-merge/ Change-Id: Ibdc3218c47b5103f28a8b6f730962434972b76be Signed-off-by: Aric Gardner --- jjb/releng/releng-release-create-venv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jjb/releng/releng-release-create-venv.sh b/jjb/releng/releng-release-create-venv.sh index de585fdb3..0200376a7 100644 --- a/jjb/releng/releng-release-create-venv.sh +++ b/jjb/releng/releng-release-create-venv.sh @@ -11,7 +11,8 @@ set -e -o pipefail echo "---> Create virtualenv" sudo -H pip install virtualenv -virtualenv $WORKSPACE/venv +virtualenv -p /usr/bin/python3 $WORKSPACE/venv + # shellcheck source=$WORKSPACE/venv/bin/activate disable=SC1091 source $WORKSPACE/venv/bin/activate pip install --upgrade pip -- cgit 1.2.3-korg