diff options
author | Ed Warnicke <eaw@cisco.com> | 2016-09-20 12:55:38 -0700 |
---|---|---|
committer | Ed Warnicke <eaw@cisco.com> | 2016-09-20 12:55:38 -0700 |
commit | c4b5febc8ee6fb1e5927238581debbea41182928 (patch) | |
tree | 530fe83725c265ed3139bca3cdd185b30864a011 /jjb/nsh_sfc | |
parent | b75ac7408631efa44aa7005204b7171da69ccb94 (diff) |
Only run push for merge jobs for docs
This sets us up to be able to run a verify-docs job
Change-Id: I02612019de89f144a965046d719dfa683b26423d
Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'jjb/nsh_sfc')
-rw-r--r-- | jjb/nsh_sfc/include-raw-nsh_sfc-docs.sh | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/jjb/nsh_sfc/include-raw-nsh_sfc-docs.sh b/jjb/nsh_sfc/include-raw-nsh_sfc-docs.sh index 1b41121ef..f8a05a97e 100644 --- a/jjb/nsh_sfc/include-raw-nsh_sfc-docs.sh +++ b/jjb/nsh_sfc/include-raw-nsh_sfc-docs.sh @@ -10,38 +10,40 @@ set -xe -o pipefail [ "$VERSION" ] || VERSION=$(./nsh-plugin/packaging/scripts/version) make doxygen -mkdir -p $(dirname ${RESOURCES_DIR}) -mv -f ${DOC_DIR} ${RESOURCES_DIR} -cd ${SITE_DIR} -find . -type f '(' -name '*.md5' -o -name '*.dot' -o -name '*.map' ')' -delete -cat > pom.xml << EOF -<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"> - <modelVersion>4.0.0</modelVersion> - <groupId>io.fd.${PROJECT_NAME}</groupId> - <artifactId>docs</artifactId> - <version>1.0.0</version> - <packaging>pom</packaging> +if [[ ${JOB_NAME} == *merge* ]]; then + mkdir -p $(dirname ${RESOURCES_DIR}) + mv -f ${DOC_DIR} ${RESOURCES_DIR} + cd ${SITE_DIR} + find . -type f '(' -name '*.md5' -o -name '*.dot' -o -name '*.map' ')' -delete + cat > pom.xml << EOF + <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"> + <modelVersion>4.0.0</modelVersion> + <groupId>io.fd.${PROJECT_NAME}</groupId> + <artifactId>docs</artifactId> + <version>1.0.0</version> + <packaging>pom</packaging> - <properties> - <generateReports>false</generateReports> - </properties> + <properties> + <generateReports>false</generateReports> + </properties> - <build> - <extensions> - <extension> - <groupId>org.apache.maven.wagon</groupId> - <artifactId>wagon-webdav-jackrabbit</artifactId> - <version>2.9</version> - </extension> - </extensions> - </build> - <distributionManagement> - <site> - <id>fdio-site</id> - <url>dav:${DOCS_REPO_URL}/${PROJECT_PATH}/${VERSION}</url> - </site> - </distributionManagement> -</project> -EOF -${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C -cd - + <build> + <extensions> + <extension> + <groupId>org.apache.maven.wagon</groupId> + <artifactId>wagon-webdav-jackrabbit</artifactId> + <version>2.9</version> + </extension> + </extensions> + </build> + <distributionManagement> + <site> + <id>fdio-site</id> + <url>dav:${DOCS_REPO_URL}/${PROJECT_PATH}/${VERSION}</url> + </site> + </distributionManagement> + </project> + EOF + ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C + cd - +fi |