3 [ "$DOCS_REPO_URL" ] || DOCS_REPO_URL="https://nexus.fd.io/content/sites/site/"
4 [ "$PROJECT_PATH" ] || PROJECT_PATH=io/fd/vpp
5 [ "$DOCS_FILE" ] || DOC_FILE=vpp.docs.zip
6 [ "$DOC_DIR" ] || DOC_DIR=build-root/docs/html
7 if [ ${BRANCH} == "stable/1609"]; then
10 echo "************************************"
11 echo "* ${BRANCH} does not publish docs *"
12 echo "************************************"
15 MVN="/opt/apache/maven/bin/mvn"
21 <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">
22 <modelVersion>4.0.0</modelVersion>
23 <groupId>io.fd.vpp</groupId>
24 <artifactId>docs</artifactId>
25 <version>1.0.0</version>
26 <packaging>pom</packaging>
30 <groupId>org.apache.maven.plugins</groupId>
31 <artifactId>maven-deploy-plugin</artifactId>
32 <version>2.8.2</version>
38 <groupId>org.sonatype.plugins</groupId>
39 <artifactId>maven-upload-plugin</artifactId>
40 <version>0.0.1</version>
46 <goal>upload-file</goal>
49 <serverId>opendaylight-log-archives</serverId>
50 <repositoryUrl>$DOCS_REPO_URL/content-compressed</repositoryUrl>
51 <file>${DOC_FILE}</file>
52 <repositoryPath>${PROJECT_PATH}</repositoryPath>
61 ${MVN} deploy -gs $GLOBAL_SETTINGS_FILE -s $SETTINGS_FILE