X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdeploy-maven-file.sh;h=a057fe1958026b19858016cc4f3f347d78c83916;hb=2c01d1c4b9b284118e2854494366e76d41e447f8;hp=9721ee2249ba5104f72b1c29d7371b0436db399a;hpb=40d61a6fd4fdc64240fc298e039d9f88215e5e40;p=releng%2Fglobal-jjb.git diff --git a/shell/deploy-maven-file.sh b/shell/deploy-maven-file.sh index 9721ee22..a057fe19 100644 --- a/shell/deploy-maven-file.sh +++ b/shell/deploy-maven-file.sh @@ -31,6 +31,11 @@ echo "---> deploy-maven-file.sh" set -e -o pipefail set +u +# shellcheck disable=SC1090 +. ~/lf-env.sh + +lf-activate-venv --python python3 lftools + export MAVEN_OPTIONS export MAVEN_PARAMS @@ -41,10 +46,10 @@ while IFS="" read -r file; do file_size=$(stat --printf="%s" "${file}") echo "Deploy ${file##*/} with ${file_size} bytes." lftools deploy maven-file "$MAVEN_REPO_URL" \ - "$REPO_ID" \ - "$file" \ - -b "$MVN" \ - -g "$GROUP_ID" \ - -p "$MAVEN_OPTIONS $MAVEN_PARAMS" \ - |& tee "$DEPLOY_LOG" + "$REPO_ID" \ + "$file" \ + -b "$MVN" \ + -g "$GROUP_ID" \ + -p "$MAVEN_OPTIONS $MAVEN_PARAMS" \ + |& tee "$DEPLOY_LOG" done < <(find "$UPLOAD_FILES_PATH" -xtype f -name "*")