X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-verify-build-nodes.sh;h=c37af67c36cadad07f79d71c85a1be3912e0d2e9;hb=refs%2Fchanges%2F02%2F72702%2F3;hp=93d85be8142ee5a8a59a048110160212c7781d6f;hpb=40d61a6fd4fdc64240fc298e039d9f88215e5e40;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-verify-build-nodes.sh b/shell/jjb-verify-build-nodes.sh index 93d85be8..c37af67c 100644 --- a/shell/jjb-verify-build-nodes.sh +++ b/shell/jjb-verify-build-nodes.sh @@ -34,20 +34,20 @@ jjbdir="jjb" # function to test if the argument is empty, # is two double quotes, or has unwanted suffix isBadLabel () { - local label="$1" - [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]] + local label="$1" + [[ -z "$label" ]] || [[ $label = "\"\"" ]] || [[ $label = *"$suffix" ]] } # function to search an array for a value # $1 is value # $2 is array, passed via ${array[@]} isValueInArray () { - local e match="$1" - shift - for e; do - [[ "$e" == "$match" ]] && return 0 - done - return 1 + local e match="$1" + shift + for e; do + [[ "$e" == "$match" ]] && return 0 + done + return 1 } # check prereqs @@ -100,6 +100,15 @@ if [[ -n ${EXTERNAL_LABELS:-} ]]; then done fi +# shellcheck disable=SC1090 +source ~/lf-env.sh + +lf-activate-venv yq + +# show installed versions +python -m pip --version +python -m pip freeze + echo "INFO: label list has ${#labels[@]} entries:" echo "INFO:" "${labels[@]}"