From: Thanh Ha Date: Thu, 2 Nov 2017 14:36:59 +0000 (-0400) Subject: Add install goal to javadoc job X-Git-Tag: v0.12.0~5^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F7244%2F4;p=releng%2Fglobal-jjb.git Add install goal to javadoc job It turns out javadoc needs to have the artifacts available to them in order to run javadoc:aggregate. In some cases this means artifacts installed to the local maven repo. This patch adds the install goal as well as ensuring we continue to skip tests, checkstyle, and findbugs to keep the jobs running quick. Change-Id: I3ffa36b207a1412e0489d6c20a91ffcd3ac93c27 Signed-off-by: Thanh Ha --- diff --git a/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-publish-master b/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-publish-master index 23fbcb8e..e1b59d1d 100644 --- a/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-publish-master +++ b/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-publish-master @@ -313,7 +313,11 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean javadoc:aggregate \ +$MVN clean install javadoc:aggregate \ + -Pq -Dmaven.javadoc.skip=false \ + -DskipTests=true \ + -Dcheckstyle.skip=true \ + -Dfindbugs.skip=true \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ $MAVEN_PARAMS $MAVEN_OPTIONS diff --git a/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-verify-master b/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-verify-master index 8f16a851..dca94bfd 100644 --- a/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-verify-master +++ b/.jjb-test/expected-xml/gerrit-maven-maven-javadoc-verify-master @@ -279,7 +279,11 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean javadoc:aggregate \ +$MVN clean install javadoc:aggregate \ + -Pq -Dmaven.javadoc.skip=false \ + -DskipTests=true \ + -Dcheckstyle.skip=true \ + -Dfindbugs.skip=true \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ $MAVEN_PARAMS $MAVEN_OPTIONS diff --git a/.jjb-test/expected-xml/github-maven-maven-javadoc-publish-master b/.jjb-test/expected-xml/github-maven-maven-javadoc-publish-master index b899d3eb..57380dd6 100644 --- a/.jjb-test/expected-xml/github-maven-maven-javadoc-publish-master +++ b/.jjb-test/expected-xml/github-maven-maven-javadoc-publish-master @@ -289,7 +289,11 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean javadoc:aggregate \ +$MVN clean install javadoc:aggregate \ + -Pq -Dmaven.javadoc.skip=false \ + -DskipTests=true \ + -Dcheckstyle.skip=true \ + -Dfindbugs.skip=true \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ $MAVEN_PARAMS $MAVEN_OPTIONS diff --git a/.jjb-test/expected-xml/github-maven-maven-javadoc-verify-master b/.jjb-test/expected-xml/github-maven-maven-javadoc-verify-master index 63b64e2d..ed97bc34 100644 --- a/.jjb-test/expected-xml/github-maven-maven-javadoc-verify-master +++ b/.jjb-test/expected-xml/github-maven-maven-javadoc-verify-master @@ -241,7 +241,11 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean javadoc:aggregate \ +$MVN clean install javadoc:aggregate \ + -Pq -Dmaven.javadoc.skip=false \ + -DskipTests=true \ + -Dcheckstyle.skip=true \ + -Dfindbugs.skip=true \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ $MAVEN_PARAMS $MAVEN_OPTIONS diff --git a/shell/maven-javadoc-generate.sh b/shell/maven-javadoc-generate.sh index aa485c0c..02a49e30 100644 --- a/shell/maven-javadoc-generate.sh +++ b/shell/maven-javadoc-generate.sh @@ -23,7 +23,11 @@ export MAVEN_OPTS # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086 -$MVN clean javadoc:aggregate \ +$MVN clean install javadoc:aggregate \ + -Pq -Dmaven.javadoc.skip=false \ + -DskipTests=true \ + -Dcheckstyle.skip=true \ + -Dfindbugs.skip=true \ --global-settings "$GLOBAL_SETTINGS_FILE" \ --settings "$SETTINGS_FILE" \ $MAVEN_PARAMS $MAVEN_OPTIONS