X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjenkins-configure-global-vars.sh;h=5e9880821be0ccaf22368c73fe42066d9dd7d5d5;hb=32fc471adb587ff7ee252ebd1b1e6664119185ea;hp=de45f907d3d992848e705a5303ed481d56096d10;hpb=d87ce091fe93fff99e25343a69baaa26c186ca85;p=releng%2Fglobal-jjb.git diff --git a/shell/jenkins-configure-global-vars.sh b/shell/jenkins-configure-global-vars.sh index de45f907..5e988082 100644 --- a/shell/jenkins-configure-global-vars.sh +++ b/shell/jenkins-configure-global-vars.sh @@ -18,10 +18,8 @@ # configuration to. (default: jenkins) echo "---> jenkins-configure-global-vars.sh" -GROOVY_SCRIPT_FILE="jjb/global-jjb/jenkins-admin/set_global_properties.groovy" +GROOVY_SCRIPT_FILE="global-jjb/jenkins-admin/set_global_properties.groovy" -# shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 -source "/tmp/v/lftools/bin/activate" silos="${jenkins_silos:-jenkins}" set -eu -o pipefail @@ -51,7 +49,7 @@ for silo in $silos; do exit 1 fi - mapfile -t vars < <(cat $global_vars) + mapfile -t vars < <(cat "$global_vars") rm -f insert.txt for var in "${vars[@]}"; do @@ -60,8 +58,8 @@ for silo in $silos; do continue fi - key=$(echo $var | cut -d\= -f1) - value=$(echo $var | cut -d\= -f2) + key=$(echo "$var" | cut -d\= -f1) + value=$(echo "$var" | cut -d\= -f2) echo " '$key': '$value'," >> insert.txt done