From 421dcd4712d770f4bd7765a6aae99eb52f2fa5cf Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Mon, 15 Jan 2018 09:11:45 +1000 Subject: [PATCH] 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 --- shell/deploy-maven-file.sh | 2 ++ 1 file changed, 2 insertions(+) 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" \ -- 2.16.6