diff options
author | 2017-01-26 14:24:51 +0100 | |
---|---|---|
committer | 2017-01-26 14:24:51 +0100 | |
commit | fd85047f50e8f92dba03e00790c0203bfce34fd2 (patch) | |
tree | a6881153a21c1c80b7b4a15209345726e0417795 /jjb/vpp | |
parent | 0389b9be435abe5cbc56b2ea4121fec0f086cb91 (diff) |
CSIT-513: Publish vpp make test doc
Change-Id: I0094026a0ae433fdbd5ad0b308e73ef0ddb3c7ea
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'jjb/vpp')
-rw-r--r-- | jjb/vpp/include-raw-vpp-make-test-docs.sh | 49 | ||||
-rw-r--r-- | jjb/vpp/vpp.yaml | 140 |
2 files changed, 189 insertions, 0 deletions
diff --git a/jjb/vpp/include-raw-vpp-make-test-docs.sh b/jjb/vpp/include-raw-vpp-make-test-docs.sh new file mode 100644 index 000000000..92325b193 --- /dev/null +++ b/jjb/vpp/include-raw-vpp-make-test-docs.sh @@ -0,0 +1,49 @@ +#!/bin/bash +set -xe -o pipefail +[ "$DOCS_REPO_URL" ] || DOCS_REPO_URL="https://nexus.fd.io/content/sites/site" +[ "$PROJECT_PATH" ] || PROJECT_PATH=io/fd/vpp_make_test +[ "$DOC_DIR" ] || DOC_DIR=build-root/test-doc/build/html +[ "$SITE_DIR" ] || SITE_DIR=build-root/docs/deploy-site +[ "$RESOURCES_DIR" ] || RESOURCES_DIR=${SITE_DIR}/src/site/resources +[ "$MVN" ] || MVN="/opt/apache/maven/bin/mvn" +[ "$VERSION" ] || VERSION=$(./build-root/scripts/version rpm-version) + +make test-doc + +if [[ ${JOB_NAME} == *merge* ]]; then + mkdir -p ${RESOURCES_DIR} + mv -f ${DOC_DIR} ${RESOURCES_DIR} + cd ${SITE_DIR} + + 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.vpp</groupId> + <artifactId>docs</artifactId> + <version>1.0.0</version> + <packaging>pom</packaging> + + <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 - +fi
\ No newline at end of file diff --git a/jjb/vpp/vpp.yaml b/jjb/vpp/vpp.yaml index 406ae3aa3..f8b52caa8 100644 --- a/jjb/vpp/vpp.yaml +++ b/jjb/vpp/vpp.yaml @@ -6,6 +6,8 @@ - 'vpp-verify-image-{stream}-{os}' - 'vpp-docs-merge-{stream}' - 'vpp-docs-verify-{stream}' + - 'vpp-make-test-docs-merge-{stream}' + - 'vpp-make-test-docs-verify-{stream}' project: 'vpp' os: @@ -505,3 +507,141 @@ default-excludes: false - fdio-infra-shiplogs: maven-version: 'mvn33-new' + +- job-template: + name: 'vpp-make-test-docs-verify-{stream}' + + project-type: freestyle + node: ubuntu1604-basebuild-4c-4g + concurrent: true + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: 'ubuntu1604' + - maven-exec: + maven-version: 'mvn33-new' + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - gerrit-trigger-patch-submitted: + name: '{project}' + branch: '{branch}' + + builders: + - maven-target: + maven-version: 'mvn33-new' + goals: '--version' + settings: 'vpp-settings' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + - provide-maven-settings: + settings-file: 'vpp-settings' + global-settings-file: 'global-settings' + - shell: + !include-raw-escape: include-raw-vpp-make-test-docs.sh + publishers: + - archive: + artifacts: 'build-root/test-doc/build/html/*' + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' + +- job-template: + name: 'vpp-make-test-docs-merge-{stream}' + + project-type: freestyle + node: ubuntu1604-basebuild-4c-4g + concurrent: true + + logrotate: + daysToKeep: '{build-days-to-keep}' + numToKeep: '{build-num-to-keep}' + artifactDaysToKeep: '{build-artifact-days-to-keep}' + artifactNumToKeep: '{build-artifact-num-to-keep}' + + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - os-parameter: + os: 'ubuntu1604' + - maven-exec: + maven-version: 'mvn33-new' + + scm: + - gerrit-trigger-scm: + credentials-id: 'jenkins-gerrit-credentials' + refspec: '' + choosing-strategy: 'default' + + wrappers: + - fdio-infra-wrappers: + build-timeout: '{build-timeout}' + + triggers: + - reverse: + jobs: 'vpp-merge-{stream}-ubuntu1404' + result: 'success' + - gerrit: + server-name: 'Primary' + trigger-on: + - comment-added-contains-event: + comment-contains-value: 'run-docs' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + skip-vote: + successful: true + failed: true + unstable: true + notbuilt: true + + builders: + - maven-target: + maven-version: 'mvn33-new' + goals: '--version' + settings: 'vpp-settings' + settings-type: cfp + global-settings: 'global-settings' + global-settings-type: cfp + - provide-maven-settings: + settings-file: 'vpp-settings' + global-settings-file: 'global-settings' + - shell: + !include-raw-escape: include-raw-vpp-make-test-docs.sh + publishers: + - archive: + artifacts: 'build-root/test-doc/build/html/*' + allow-empty: 'true' + fingerprint: false + only-if-success: true + default-excludes: false + - fdio-infra-shiplogs: + maven-version: 'mvn33-new' |