X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=7bbc36feaaff9a5499646b067597c8861f99dc5e;hb=64e510a02d5c8530eda9be1d771789eedcbe895f;hp=fe602897d8e655cac25e347a7bcdfa5a01ad08fe;hpb=b4c58535d507307bacce502846b1f9044b6beba6;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index fe602897..7bbc36fe 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -1,5 +1,5 @@ #!/bin/bash -# @License EPL-1.0 +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. # @@ -20,3 +20,10 @@ MAVEN_OPTIONS="$(echo --show-version \ -Dmaven.repo.local=/tmp/r \ -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)" echo "$MAVEN_OPTIONS" + +# Activates the lftools virtualenv +lftools_activate() { + virtualenv --quiet "/tmp/v/lftools" + # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 + source "/tmp/v/lftools/bin/activate" +}