summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
0b474d9)
The kernel has a limit on how long a shebang can be and causes build
issues when we store virtualenvs in $WORKSPACE for jobs that have very
long names. Move virtualenv installs into /tmp/v will solve this issue
for good. Also no need for workarounds like `$PYTHON -m pip` anymore.
Change-Id: I72be5f42c2196e88f22262688e3425f6a83e807c
Jira: RELENG-156
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
-virtualenv "$WORKSPACE/.virtualenvs/jjb"
-# shellcheck source=./.virtualenvs/jjb/bin/activate disable=SC1091
-source "$WORKSPACE/.virtualenvs/jjb/bin/activate"
+virtualenv "/tmp/v/jjb"
+# shellcheck source=/tmp/v/jjb/bin/activate disable=SC1091
+source "/tmp/v/jjb/bin/activate"
pip install --quiet --upgrade pip
pip install --quiet --upgrade pipdeptree
pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION"
pip install --quiet --upgrade pip
pip install --quiet --upgrade pipdeptree
pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION"
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
-virtualenv --quiet "$WORKSPACE/.virtualenvs/lftools"
-# shellcheck source=./.virtualenvs/lftools/bin/activate disable=SC1091
-source "$WORKSPACE/.virtualenvs/lftools/bin/activate"
-PYTHON="$WORKSPACE/.virtualenvs/lftools/bin/python"
-$PYTHON -m pip install --quiet --upgrade pip
-$PYTHON -m pip install --quiet --upgrade "lftools<1.0.0"
+virtualenv --quiet "/tmp/v/lftools"
+# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091
+source "/tmp/v/lftools/bin/activate"
+pip install --quiet --upgrade pip
+pip install --quiet --upgrade "lftools<1.0.0"
# pipdeptree prints out a lot of information because lftools pulls in many
# dependencies. Let's only print it if we want to debug.
# echo "----> Pip Dependency Tree"
# pipdeptree prints out a lot of information because lftools pulls in many
# dependencies. Let's only print it if we want to debug.
# echo "----> Pip Dependency Tree"
-# $PYTHON -m pip install --quiet --upgrade pipdeptree
-# $PYTHON -m pipdeptree
+# pip install --quiet --upgrade pipdeptree
+# pipdeptree
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
# DO NOT set -u as virtualenv's activate script has unbound variables
set -e -o pipefail
-virtualenv --quiet "$WORKSPACE/.virtualenvs/tox"
-# shellcheck source=./.virtualenvs/tox/bin/activate disable=SC1091
-source "$WORKSPACE/.virtualenvs/tox/bin/activate"
-PYTHON="$WORKSPACE/.virtualenvs/tox/bin/python"
-$PYTHON -m pip install --quiet --upgrade pip
-$PYTHON -m pip install --quiet --upgrade pipdeptree
-$PYTHON -m pip install --quiet --upgrade tox argparse
+virtualenv --quiet "/tmp/v/tox"
+# shellcheck source=/tmp/v/tox/bin/activate disable=SC1091
+source "/tmp/v/tox/bin/activate"
+pip install --quiet --upgrade pip
+pip install --quiet --upgrade pipdeptree
+pip install --quiet --upgrade tox argparse
echo "----> Pip Dependency Tree"
echo "----> Pip Dependency Tree"