Compress and upload Javadoc for publish jobs
[releng/global-jjb.git] / 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