From: Anil Belur Date: Tue, 11 Dec 2018 11:47:47 +0000 (+1000) Subject: Compress and upload Javadoc for publish jobs X-Git-Tag: v0.29.0~5^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=aa92f8111f5c7836b17f655a426d3b050cbb29df;p=releng%2Fglobal-jjb.git Compress and upload Javadoc for publish jobs Javadoc publish job always successfully publishes to the "javadoc" repo, therefore dont maintain another copy of this on the logs server. Also Javadocs contain ~15K small files which potentially requires additional CPU cycles for pruning on the logs server. Issue: RELENG-1215 Change-Id: I1b107a1c65db4b70096d5735c741fb32f09daedd Signed-off-by: Anil Belur --- diff --git a/shell/maven-javadoc-publish.sh b/shell/maven-javadoc-publish.sh index e395a5ea..9a5a3a4b 100644 --- a/shell/maven-javadoc-publish.sh +++ b/shell/maven-javadoc-publish.sh @@ -23,3 +23,9 @@ zip -r "$WORKSPACE/javadoc.zip" . popd lftools deploy nexus-zip "$NEXUS_URL" "javadoc" "$DEPLOY_PATH" "$WORKSPACE/javadoc.zip" + +# Tarball the javadoc dir and rm the directory to avoid re-upload into logs +pushd "$JAVADOC_DIR" +tar cvJf "$WORKSPACE/archives/javadoc.tar.xz" . +rm -rf "$JAVADOC_DIR" +popd