diff options
author | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-09-09 11:50:38 -0700 |
---|---|---|
committer | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-09-09 11:50:38 -0700 |
commit | 9cb5e8814cd564c01ab198f7c8e32f63273f948e (patch) | |
tree | 53ff3a97a83c92b68d0e28f89b2705668abd1f95 /jjb | |
parent | 8d525f389c89048713de3bb32ef4b2ef9cee6a98 (diff) |
Correct details of mvn deploy script
* allow MVN to be defined outside of the script
* correct upload path
* correct id
Change-Id: Ia3c368abfe210eea6ff8424404d7bab47083cf2b
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/vpp/include-raw-vpp-docs.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/jjb/vpp/include-raw-vpp-docs.sh b/jjb/vpp/include-raw-vpp-docs.sh index 286c333fa..1fee8495b 100644 --- a/jjb/vpp/include-raw-vpp-docs.sh +++ b/jjb/vpp/include-raw-vpp-docs.sh @@ -1,9 +1,11 @@ #!/bin/bash set -xe -o pipefail -[ "$DOCS_REPO_URL" ] || DOCS_REPO_URL="https://nexus.fd.io/service/local/repositories/site/" +[ "$DOCS_REPO_URL" ] || DOCS_REPO_URL="https://nexus.fd.io/service/local/repositories/site" [ "$PROJECT_PATH" ] || PROJECT_PATH=io/fd/vpp [ "$DOC_FILE" ] || DOC_FILE=vpp.docs.zip [ "$DOC_DIR" ] || DOC_DIR=build-root/docs/html +[ "$MVN" ] || MVN="/opt/apache/maven/bin/mvn" + if [ "${GERRIT_BRANCH}" == "stable/1609" ]; then VERSION=16.09 else @@ -12,7 +14,7 @@ else echo "************************************" exit fi -MVN="/opt/apache/maven/bin/mvn" + sudo apt-get install -y zip @@ -42,7 +44,7 @@ cat > pom.xml << EOF <version>0.0.1</version> <executions> <execution> - <id>publish-site</id> + <id>site</id> <phase>deploy</phase> <goals> <goal>upload-file</goal> @@ -60,6 +62,5 @@ cat > pom.xml << EOF </build> </project> EOF -${MVN} deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" +${MVN} -Dhttp.connection.timeout=6000000 deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" cd - - |