Print file size before deploy maven file to nexus
[releng/global-jjb.git] / 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" \