3 # Job template for verifying Sphinx/Restructured Text for RTD
5 # The purpose of this job template is verify documentation source
10 # path: directory containing the project's tox.ini relative to
11 # the workspace. The default is the project root.
13 name: '{project-name}-{stream}-verify-rtd'
16 project-type: freestyle
22 build-days-to-keep: '{build-days-to-keep}'
28 refspec: 'refs/heads/{branch}'
29 artifacts: '{archive-artifacts}'
31 maven-version: '{maven-version}'
36 choosing-strategy: 'gerrit'
37 submodule-recursive: '{submodule-recursive}'
41 build-timeout: '{build-timeout}'
44 - gerrit-trigger-patch-submitted:
45 server: '{server-name}'
48 files: 'docs/**/*.rst'
53 if [ "$GERRIT_PROJECT" != "doc" ]; then
54 cd docs/submodules/$GERRIT_PROJECT
55 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
57 git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
61 virtualenv $WORKSPACE/venv-tox
62 source $WORKSPACE/venv-tox/bin/activate
63 pip install --upgrade pip
64 pip install --upgrade tox argparse
71 maven-version: '{maven-version}'
74 # Job template for merging/publishing Sphinx/Restructured Text at RTD
76 # The purpose of this job template is to trigger updates after
77 # a merge of documentation source in gerrit
81 # rtdproject: name of a project at readthedocs.io
83 # path: directory containing the project's tox.ini relative to
84 # the workspace. The default is the project root.
86 name: '{project-name}-{stream}-merge-rtd'
89 project-type: freestyle
95 build-days-to-keep: '{build-days-to-keep}'
101 refspec: 'refs/heads/{branch}'
102 artifacts: '{archive-artifacts}'
104 maven-version: '{maven-version}'
108 - gerrit-trigger-scm:
110 choosing-strategy: 'gerrit'
111 submodule-recursive: '{submodule-recursive}'
115 build-timeout: '{build-timeout}'
119 server-name: '{server-name}'
121 - change-merged-event
122 - comment-added-contains-event:
123 comment-contains-value: 'remerge'
125 - project-compare-type: 'ANT'
126 project-pattern: '**'
128 - branch-compare-type: 'ANT'
129 branch-pattern: '**/{branch}'
132 pattern: docs/**/*.rst
135 - shell: !include-raw: doc-post-rtd.sh
139 maven-version: '{maven-version}'