From 9cb5e8814cd564c01ab198f7c8e32f63273f948e Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Fri, 9 Sep 2016 11:50:38 -0700 Subject: [PATCH] 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 --- jjb/vpp/include-raw-vpp-docs.sh | 11 ++++++----- 1 file 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 0.0.1 - publish-site + site deploy upload-file @@ -60,6 +62,5 @@ cat > pom.xml << EOF EOF -${MVN} deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" +${MVN} -Dhttp.connection.timeout=6000000 deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" cd - - -- 2.16.6