Merge "Compress and upload Javadoc for publish jobs"
authorThanh Ha (zxiiro) <thanh.ha@linuxfoundation.org>
Mon, 7 Jan 2019 22:25:00 +0000 (22:25 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Mon, 7 Jan 2019 22:25:00 +0000 (22:25 +0000)
shell/maven-javadoc-publish.sh

index e395a5e..9a5a3a4 100644 (file)
@@ -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