From fd8d915b212fb8adc943a74b537b5b5efffeaaad Mon Sep 17 00:00:00 2001 From: ShubhamRathi Date: Fri, 27 Jan 2017 00:00:39 +0530 Subject: Add new jobs for doc merge and verify New jobs for merge and verify added in tandem to ODLDocs. Intent of keeping these doc jobs between ODL & OPNFV as similar as possible is to keep the scope for common jobs and cross collaboration possible. The archiving feature that is included in post build configuration of ODLDoc jobs has been left out for now until CI Team can take it up. Change-Id: Ifb494f1491f07ad0af39cd2644f895372b98edf3 Signed-off-by: ShubhamRathi --- jjb/opnfvdocs/docs-rtd.yaml | 69 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 jjb/opnfvdocs/docs-rtd.yaml (limited to 'jjb/opnfvdocs/docs-rtd.yaml') diff --git a/jjb/opnfvdocs/docs-rtd.yaml b/jjb/opnfvdocs/docs-rtd.yaml new file mode 100644 index 000000000..7ff8cd162 --- /dev/null +++ b/jjb/opnfvdocs/docs-rtd.yaml @@ -0,0 +1,69 @@ +- project: + name: docs-rtd + jobs: + - 'docs-merge-rtd-{stream}' + - 'docs-verify-rtd-{stream}' + + stream: + - danube: + branch: 'master' + - colorado: + branch: 'stable/colorado' + + project: 'opnfvdocs' + rtdproject: 'opnfv' + # TODO: Archive Artifacts + +- job-template: + name: 'docs-merge-rtd-{stream}' + + project-type: freestyle + + parameters: + - project-parameter: + project: '{project}' + branch: '{branch}' + scm: + - git-scm + + triggers: + - gerrit-trigger-change-merged + + builders: + - shell: !include-raw: docs-post-rtd.sh + +- job-template: + name: 'docs-verify-rtd-{stream}' + + project-type: freestyle + + parameters: + - project-parameter: + project: '{project}' + branch: '{branch}' + scm: + - git-scm + + triggers: + - gerrit-trigger-patchset-created: + server: 'gerrit.opnfv.org' + project: '**' + branch: '{branch}' + files: 'docs/**/*.rst' + - timed: 'H H * * *' + + builders: + - shell: | + if [ "$GERRIT_PROJECT" != "opnfvdocs" ]; then + cd opnfvdocs/submodules/$GERRIT_PROJECT + git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD + else + git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD + fi + - shell: | + virtualenv $WORKSPACE/venv + source $WORKSPACE/venv/bin/activate + pip install --upgrade pip + pip freeze + pip install tox + tox -edocs \ No newline at end of file -- cgit 1.2.3-korg