3 name: '{project-name}-rtd-jobs'
5 # This job group contains all the ReadTheDocs jobs
12 name: '{project-name}-github-rtd-jobs'
14 # This job group contains all the ReadTheDocs jobs
24 - lf_rtd_common: &lf_rtd_common
26 # RTD verify and merge jobs are the same except for their scm, trigger, and
27 # builders definition. This anchor is the common template
29 # Optional parameters:
30 # :gerrit_trigger_file_paths: Override file paths which can be used to
31 # filter which file modifications will trigger a build.
32 # (default: - compare-type: ANT
35 # pattern: '**/conf.py')
37 ######################
38 # Default parameters #
39 ######################
41 gerrit_trigger_file_paths:
51 project-type: freestyle
55 - lf-infra-properties:
59 - lf-infra-parameters:
62 refspec: 'refs/heads/{branch}'
64 lftools-version: '{lftools-version}'
68 build-timeout: '{build-timeout}'
69 jenkins-ssh-credential: '{jenkins-ssh-credential}'
78 - lf_rtd_merge: &lf_rtd_merge
81 # Merge job which triggers a POST of the docs project to readthedocs
83 # Required parameters:
85 # :rtd-project: This is the name of the project on ReadTheDocs.org.
87 # Optional parameters:
89 # :branch: Git branch to fetch for the build. (default: master)
90 # :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
91 # :build-node: The node to run build on.
92 # :build-timeout: Timeout in seconds before aborting build. (default: 15)
93 # :git-url: base URL of git project. (default: https://github.com)
94 # :stream: Keyword that can be used to represent a release code-name.
95 # Often the same as the branch. (default: master)
97 ######################
98 # Default parameters #
99 ######################
102 build-days-to-keep: 7
104 git-url: https://github.com
106 submodule-recursive: true
108 #####################
109 # Job Configuration #
110 #####################
113 - lf-rtd-trigger-build:
114 rtd-project: '{rtd-project}'
117 name: '{project-name}-rtd-merge-{stream}'
120 # yamllint disable-line rule:key-duplicates
125 server-name: '{gerrit-server-name}'
127 - change-merged-event
128 - comment-added-contains-event:
129 comment-contains-value: 'remerge$'
131 - project-compare-type: 'ANT'
132 project-pattern: '**'
134 - branch-compare-type: 'ANT'
135 branch-pattern: '**/{branch}'
136 file-paths: '{obj:gerrit_trigger_file_paths}'
139 name: '{project-name}-rtd-merge-{stream}'
142 # yamllint disable-line rule:key-duplicates
147 url: '{git-url}/{github-org}/{project}'
150 - lf-infra-github-pr-trigger:
151 trigger-phrase: '^remerge$'
152 only-trigger-phrase: false
153 status-context: 'RTD Merge'
159 github_pr_admin_list:
167 - lf_rtd_verify: &lf_rtd_verify
169 # Verify job which runs a tox build of the docs project
171 # Optional parameters:
173 # :branch: Git branch to fetch for the build. (default: master)
174 # :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
175 # :build-node: The node to run build on.
176 # :build-timeout: Timeout in seconds before aborting build. (default: 15)
177 # :doc-dir: Directory where tox will place built docs.
178 # as defined in the tox.ini (default: docs/_build/html)
179 # :git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
180 # :stream: Keyword that can be used to represent a release code-name.
181 # Often the same as the branch. (default: master)
182 # :submodule-recursive: Whether to checkout submodules recursively.
185 ######################
186 # Default parameters #
187 ######################
190 build-days-to-keep: 7
192 doc-dir: docs/_build/html
193 git-url: '$GIT_URL/$PROJECT'
195 submodule-recursive: true
197 #####################
198 # Job Configuration #
199 #####################
206 name: '{project-name}-rtd-verify-{stream}'
207 id: gerrit-rtd-verify
210 # yamllint disable-line rule:key-duplicates
214 - lf-infra-gerrit-scm:
216 jenkins-ssh-credential: '{jenkins-ssh-credential}'
219 submodule-recursive: '{submodule-recursive}'
220 choosing-strategy: default
224 server-name: '{gerrit-server-name}'
226 - change-merged-event
227 - comment-added-contains-event:
228 comment-contains-value: 'recheck$'
230 - project-compare-type: 'ANT'
231 project-pattern: '**'
233 - branch-compare-type: 'ANT'
234 branch-pattern: '**/{branch}'
235 file-paths: '{obj:gerrit_trigger_file_paths}'
238 name: '{project-name}-rtd-verify-{stream}'
239 id: github-rtd-verify
242 # yamllint disable-line rule:key-duplicates
247 url: '{git-url}/{github-org}/{project}'
250 - lf-infra-github-scm:
251 url: '{git-clone-url}{github-org}/{project}'
252 refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
254 submodule-recursive: '{submodule-recursive}'
255 choosing-strategy: default
256 jenkins-ssh-credential: '{jenkins-ssh-credential}'
259 - lf-infra-github-pr-trigger:
260 trigger-phrase: '^recheck$'
261 only-trigger-phrase: false
262 status-context: 'RTD Verify'
268 github_pr_admin_list: