X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fdeploy-maven-file.sh;h=e4559abb99f3975d6ecba536d462dcec45b5ab60;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=1b89538965d7d7355106d5d162d99ee7472a05e2;hpb=bd666934503c622d939adaccc6d1be7066c6a214;p=releng%2Fglobal-jjb.git diff --git a/shell/deploy-maven-file.sh b/shell/deploy-maven-file.sh index 1b895389..e4559abb 100644 --- a/shell/deploy-maven-file.sh +++ b/shell/deploy-maven-file.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -37,15 +37,14 @@ export MAVEN_PARAMS DEPLOY_LOG="$WORKSPACE/archives/deploy-maven-file.log" mkdir -p "$WORKSPACE/archives" -while IFS="" read -r file -do +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 "*")