]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create the virtualenv at /tmp/jenkins-venv
authorAndrew Schoen <aschoen@redhat.com>
Thu, 4 Aug 2016 15:43:54 +0000 (10:43 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 4 Aug 2016 18:38:09 +0000 (13:38 -0500)
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>
scripts/build_utils.sh

index 46ab58373190c1d9613e7094762813cbecc050ac..4521c369cf0a3e5a56c2e654e33a98819d5c3f3f 100644 (file)
@@ -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"