3 [ "$DOCS_REPO_URL" ] || DOCS_REPO_URL="https://nexus.fd.io/content/sites/site/"
4 [ "$PROJECT_PATH" ] || PROJECT_PATH=io/fd/vpp
5 [ "$DOC_FILE" ] || DOC_FILE=vpp.docs.zip
6 [ "$DOC_DIR" ] || DOC_DIR=build-root/docs/html
7 if [ "${GERRIT_BRANCH}" == "stable/1609" ]; then
10 echo "************************************"
11 echo "* ${GERRIT_BRANCH} does not publish docs *"
12 echo "************************************"
15 MVN="/opt/apache/maven/bin/mvn"
17 sudo apt-get install -y zip
23 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24 <modelVersion>4.0.0</modelVersion>
25 <groupId>io.fd.vpp</groupId>
26 <artifactId>docs</artifactId>
27 <version>1.0.0</version>
28 <packaging>pom</packaging>
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-deploy-plugin</artifactId>
34 <version>2.8.2</version>
40 <groupId>org.sonatype.plugins</groupId>
41 <artifactId>maven-upload-plugin</artifactId>
42 <version>0.0.1</version>
48 <goal>upload-file</goal>
51 <serverId>fdio-docs</serverId>
52 <repositoryUrl>$DOCS_REPO_URL/content-compressed</repositoryUrl>
53 <file>${DOC_FILE}</file>
54 <repositoryPath>${PROJECT_PATH}/${VERSION}</repositoryPath>
63 ${MVN} deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}"