X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frelease-job.sh;h=b764ac1919789a80b2d55c20f5773b0e1358b5b1;hb=refs%2Ftags%2Fv0.44.0;hp=2ac368f69b3ec07267f5e88b14d991254e606c9d;hpb=dfaccb8f22edd6bf6ba2d6817c7574689554d373;p=releng%2Fglobal-jjb.git diff --git a/shell/release-job.sh b/shell/release-job.sh index 2ac368f6..b764ac19 100644 --- a/shell/release-job.sh +++ b/shell/release-job.sh @@ -11,17 +11,12 @@ echo "---> release-job.sh" set -eu -o pipefail -#Python bits. Remove when centos 7.7 builder is avaliable. -if [ -d "/opt/pyenv" ]; then - echo "INFO: Setting up pyenv" - export PYENV_ROOT="/opt/pyenv" - export PATH="$PYENV_ROOT/bin:$PATH" -fi -PYTHONPATH=$(pwd) -export PYTHONPATH -pyenv local 3.6.4 -export PYENV_VERSION="3.6.4" -pip install --user lftools[nexus] jsonschema niet yq +set +u +python3 -m venv /tmp/v/venv/ +# shellcheck disable=SC1091 +source /tmp/v/venv/bin/activate +set -u +python -m pip install lftools[nexus] jsonschema niet yq #Functions.