The $WORKSPACE path is getting to long and causing an
exception to be thrown with the message:
"bad interpreter: No such file or directory"
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
set -ex
-VENV="$WORKSPACE/venv/bin"
+VENV="/tmp/jenkins-venv/bin"
install_python_packages () {
# Use this function to create a virtualenv and install
# install_python_packages "to_install[@]"
# Create the virtualenv
- rm -rf "$WORKSPACE/venv"
- virtualenv $WORKSPACE/venv
+ rm -rf "/tmp/jenkins-venv"
+ virtualenv /tmp/jenkins-venv
# Define and ensure the PIP cache
PIP_SDIST_INDEX="$HOME/.cache/pip"