From f4a96ef4baa3f4a2d4246d0aa0e0657c6f0e1cda Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Thu, 4 Aug 2016 10:43:54 -0500 Subject: [PATCH] create the virtualenv at /tmp/jenkins-venv 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 --- scripts/build_utils.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index 46ab5837..4521c369 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -2,7 +2,7 @@ set -ex -VENV="$WORKSPACE/venv/bin" +VENV="/tmp/jenkins-venv/bin" install_python_packages () { # Use this function to create a virtualenv and install @@ -14,8 +14,8 @@ install_python_packages () { # 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" -- 2.39.5