From: Anil Belur Date: Sun, 14 Jan 2018 23:11:45 +0000 (+1000) Subject: Print file size before deploy maven file to nexus X-Git-Tag: v0.15.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=421dcd4712d770f4bd7765a6aae99eb52f2fa5cf;p=releng%2Fglobal-jjb.git Print file size before deploy maven file to nexus The size of the file is useful to determine if nexus deploy failures are due to the file size exceeding the limits. Change-Id: I1c0eda93ab964a30e37ea910a7a5859a65de8ee3 Signed-off-by: Anil Belur --- diff --git a/shell/deploy-maven-file.sh b/shell/deploy-maven-file.sh index 338a8c30..a0b1f5e5 100644 --- a/shell/deploy-maven-file.sh +++ b/shell/deploy-maven-file.sh @@ -39,6 +39,8 @@ mkdir -p "$WORKSPACE/archives" 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" \