Print file size before deploy maven file to nexus 94/8394/1
authorAnil Belur <abelur@linuxfoundation.org>
Sun, 14 Jan 2018 23:11:45 +0000 (09:11 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Sun, 14 Jan 2018 23:21:00 +0000 (09:21 +1000)
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 <abelur@linuxfoundation.org>
shell/deploy-maven-file.sh

index 338a8c3..a0b1f5e 100644 (file)
@@ -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" \