Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix: Update Gradle publish job
[releng/global-jjb.git]
/
shell
/
jenkins-configure-global-vars.sh
diff --git
a/shell/jenkins-configure-global-vars.sh
b/shell/jenkins-configure-global-vars.sh
index
1e2f95e
..
873e0b3
100644
(file)
--- 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
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."
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
continue
fi