summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAric Gardner <agardner@linuxfoundation.org>2019-05-24 17:37:06 -0400
committerAric Gardner <agardner@linuxfoundation.org>2019-05-24 17:37:36 -0400
commit7163c9bfac715d9b92fe46ac3272c02f470d13fd (patch)
treeb10a0ad42c379023e7a7889716faf235340ff88f
parent7d251e861b54f1a9d9ab192c7c65e5a810541e43 (diff)
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 <agardner@linuxfoundation.org>
-rw-r--r--jjb/releng/releng-release-create-venv.sh3
1 files changed, 2 insertions, 1 deletions
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