X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=5092a8eaa8cdc2112d542363df2781bd555a0c6d;hb=a86c6e8d376c95aa00b179fce9d207e61c8f72d0;hp=fe602897d8e655cac25e347a7bcdfa5a01ad08fe;hpb=34ab3807fb760dea4fdfc08b1692d49a243759f1;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index fe602897..5092a8ea 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -1,5 +1,5 @@ -#!/bin/bash -# @License EPL-1.0 +#!/bin/bash -l +# SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. # @@ -8,7 +8,7 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## - +echo "---> common-variables.sh" # This file contains a list of variables that are generally useful in many # scripts. It is meant to be sourced in other scripts so that the variables can # be called. @@ -20,3 +20,13 @@ 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() { + echo "WARNING: lftools_activate should no longer be used and will be removed in a future release." + virtualenv --quiet "/tmp/v/lftools" + set +u # Ignore unbound variables in activate + # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 + source "/tmp/v/lftools/bin/activate" + set -u # Restore unbound variable checking +}