X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-javadoc-publish.sh;h=a3838ca2f1975d2c3d79de1a00fdb62480cc3f03;hb=2a10c83b2d506008cc6c01c134515fb6328e1f3a;hp=fa691e60f5f2d5e594b2cad85af0a428e115185a;hpb=e399aea1a5da089f150fa847478ea53354945e00;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-javadoc-publish.sh b/shell/maven-javadoc-publish.sh index fa691e60..a3838ca2 100644 --- a/shell/maven-javadoc-publish.sh +++ b/shell/maven-javadoc-publish.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -l # SPDX-License-Identifier: EPL-1.0 ############################################################################## # Copyright (c) 2017 The Linux Foundation and others. @@ -8,7 +8,7 @@ # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## - +echo "---> maven-javadoc-publish.sh" # Publishes javadoc to a Maven project. # DO NOT enable -u because $MAVEN_PARAMS and $MAVEN_OPTIONS could be unbound. @@ -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