X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-configure-global-vars.sh;h=873e0b336e509edb7999b3ca9159da63708aef34;hb=7c8c0136203f61317e6904030f86dfbd5a6c402e;hp=1e2f95ea195203e3f427149e61c512e5b0eec072;hpb=ba4d6e09d765acef795daff7c6db701e73652382;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-configure-global-vars.sh b/shell/jenkins-configure-global-vars.sh index 1e2f95ea..873e0b33 100644 --- a/shell/jenkins-configure-global-vars.sh +++ b/shell/jenkins-configure-global-vars.sh @@ -24,11 +24,19 @@ silos="${jenkins_silos:-jenkins}" set -eu -o pipefail +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --python python3 lftools + for silo in $silos; do if [ ! -f "$WORKSPACE/jenkins-config/global-vars-$silo.sh" ]; then echo "WARN: jenkins-config/global-vars-$silo.sh does not exist. Skipping cloud management..." echo "We highly recommend setting up global-vars-$silo.sh to manage the Jenkins global variables." - echo "Refer to https://docs.releng.linuxfoundation.org/projects/global-jjb/en/latest/jjb/lf-ci-jobs.html#global-environment-variables for details." + # shellcheck disable=SC2140 + echo "Refer to https://docs.releng.linuxfoundation.org/"\ +"projects/global-jjb/en/latest/jjb/lf-ci-jobs.html"\ +"#global-environment-variables for details." continue fi