From: Jackie Huang Date: Tue, 14 Dec 2021 02:59:23 +0000 (+0800) Subject: pti-rtp: fix for installation of lftools in upload-inf.sh X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=5da35a0d5050c5e37f5c0221c0106b5c2ab14234;p=ci-management.git pti-rtp: fix for installation of lftools in upload-inf.sh Install/upgrade pip and setuptools before installing lftools in upload-inf.sh, so it will ensure the installation success. Issue-ID: INF-246 Signed-off-by: Jackie Huang Change-Id: Ia117a1a8801f391e69b66298a6cead7b0d08497c --- diff --git a/jjb/pti-rtp/upload-inf.sh b/jjb/pti-rtp/upload-inf.sh index d95b282c..afcdd269 100644 --- a/jjb/pti-rtp/upload-inf.sh +++ b/jjb/pti-rtp/upload-inf.sh @@ -24,9 +24,13 @@ set -eu -o pipefail echo "INFO: creating virtual environment" virtualenv -p python3 /tmp/venv PATH=/tmp/venv/bin:$PATH -pipup="python -m pip install -q --upgrade lftools" -echo "INFO: installing packages: $pipup" -$pipup + +pip_pkgs="pip setuptools lftools" +for pkg in $pip_pkgs; do + cmd_pip="python -m pip install -q --upgrade $pkg" + echo "INFO: installing packages: $cmd_pip" + $cmd_pip +done # NEXUS_URL is set by Jenkins nexus_repo_id="images"