Use lf-infra-pre-build to install lftools via --user config. This
resolves the post-build install failing to pull in pip==18.0.
This is related to the lftools-venv series of patches.
Change-Id: Iade69e1de3bc585c88d1c4fe60a7081c9d6319aa
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
#####################
builders:
+ - lf-infra-pre-build
- lf-infra-jjbini
- shell: !include-raw-escape:
- ../shell/jjb-install.sh
concurrent: true
builders:
+ - lf-infra-pre-build
- lf-infra-jjbini
- shell: !include-raw-escape:
- ../shell/git-validate-jira-urls.sh
# shellcheck source="$WORKSPACE/.jjb.properties" disable=SC1091
source "$WORKSPACE/.jjb.properties"
if [[ -n "$JJB_VENV" && "$JJB_VENV" =~ /tmp/.* ]]; then
- rm -r "$JJB_VENV" && echo "$JJB_VENV removed"
+ rm -rf "$JJB_VENV" && echo "$JJB_VENV removed"
unset JJB_VENV
fi
-rm "$WORKSPACE/.jjb.properties"
+rm -f "$WORKSPACE/.jjb.properties"
+deactivate
-#!/bin/bash
+#!/bin/bash -l
# SPDX-License-Identifier: EPL-1.0
##############################################################################
# Copyright (c) 2017 The Linux Foundation and others.
echo "JJB_VENV=$JJB_VENV" > "$WORKSPACE/.jjb.properties"
# shellcheck source=$VENV_DIR/bin/activate disable=SC1091
source "$JJB_VENV/bin/activate"
-pip install --quiet --upgrade "pip==9.0.3" setuptools
-pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION"
+python -m pip install --quiet --upgrade "jenkins-job-builder==$JJB_VERSION"
echo "----> pip freeze"
pip freeze