Merge "Add lf-infra-wss-mvn-clean-install step"
[releng/global-jjb.git] / shell / maven-javadoc-publish.sh
index fa691e6..9a5a3a4 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
@@ -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