Code Review
/
releng
/
global-jjb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
8bacaf6
)
Print file size before deploy maven file to nexus
94/8394/1
author
Anil Belur
<abelur@linuxfoundation.org>
Sun, 14 Jan 2018 23:11:45 +0000
(09:11 +1000)
committer
Anil 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
patch
|
blob
|
history
diff --git
a/shell/deploy-maven-file.sh
b/shell/deploy-maven-file.sh
index
338a8c3
..
a0b1f5e
100644
(file)
--- 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" \