X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fmaven-javadoc-generate.sh;h=ec4743a742df4c367ce1b8ed13f25f603a8c03f9;hb=e1a8dc64cfe10360ebdcadd28806adf800760ce7;hp=99590d6464b7373dabcfe11aaab38258935a8e52;hpb=bc5892ef503dc4039aa0aae4043e5c9b2cc9a363;p=releng%2Fglobal-jjb.git diff --git a/shell/maven-javadoc-generate.sh b/shell/maven-javadoc-generate.sh index 99590d64..ec4743a7 100644 --- a/shell/maven-javadoc-generate.sh +++ b/shell/maven-javadoc-generate.sh @@ -33,3 +33,14 @@ $MVN clean install javadoc:aggregate \ $MAVEN_OPTIONS $MAVEN_PARAMS mv "$WORKSPACE/target/site/apidocs" "$JAVADOC_DIR" + +# TODO: Nexus unpack plugin throws a "504 gateway timeout" for jobs archiving +# large number of small files. Remove the workaround only we move away from +# using Nexus as the log server. +if [[ "$JOB_NAME" =~ "javadoc-verify" ]]; then + # 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 +fi