Add vpp docs only CI jobs
[ci-management.git] / jjb / vpp / docs.yaml
1 ---
2 - project:
3     name: docs
4     jobs:
5       - 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
6       - 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
7       - 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
8       - 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
9
10     project: 'vpp'
11     executor-arch: 'x86_64'
12     os:
13       - 'ubuntu2004'
14       - 'ubuntu2204'
15     stream:
16       - 'master':
17           branch: 'master'
18           branch-refspec: ''
19       - '2210':
20           branch: 'stable/2210'
21           branch-refspec: ''
22       - '2302':
23           branch: 'stable/2302'
24           branch-refspec: ''
25     exclude:
26       # os deprecated in 23.02
27       - stream: '2302'
28         os: 'ubuntu2004'
29       # os deprecated in 22.10
30       - stream: '2210'
31         os: 'ubuntu2004'
32       # os deprecated in master
33       - stream: 'master'
34         os: 'ubuntu2004'
35       # os added in 22.10
36
37 - job-template:
38     name: 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
39
40     project-type: freestyle
41     node: 'builder-{os}-prod-{executor-arch}'
42     concurrent: true
43     allow-empty: 'true'
44     fingerprint: false
45     only-if-success: true
46     default-excludes: false
47
48     properties:
49       - lf-infra-properties:
50           build-days-to-keep: "{build-days-to-keep}"
51
52     parameters:
53       - project-parameter:
54           project: '{project}'
55       - gerrit-parameter:
56           branch: '{branch}'
57       - os-parameter:
58           os: '{os}'
59       - stream-parameter:
60           stream: '{stream}'
61       - gerrit-refspec-parameter:
62           refspec: '{branch-refspec}'
63
64     scm:
65       - gerrit-trigger-scm:
66           credentials-id: 'jenkins-gerrit-credentials'
67           refspec: '$GERRIT_REFSPEC'
68           choosing-strategy: 'gerrit'
69
70     wrappers:
71       - fdio-infra-wrappers:
72           build-timeout: '{build-timeout}'
73
74     triggers:
75       - gerrit-trigger-checkstyle:
76           name: '{project}'
77           branch: '{branch}'
78
79     builders:
80       - shell:
81           !include-raw-escape:
82           - ../scripts/setup_executor_env.sh
83       - shell:
84           !include-raw-escape:
85           - ../scripts/setup_vpp_ubuntu_docker_test.sh
86       - shell:
87           !include-raw-escape:
88           - ../scripts/vpp/docs.sh
89
90     publishers:
91       - fdio-infra-publish-docs-7day
92       - fdio-infra-publish
93
94 - job-template:
95     name: 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
96
97     project-type: freestyle
98     node: 'builder-{os}-prod-{executor-arch}'
99     concurrent: false
100     allow-empty: 'true'
101     fingerprint: false
102     only-if-success: true
103     default-excludes: false
104
105     properties:
106       - lf-infra-properties:
107           build-days-to-keep: "{build-days-to-keep}"
108
109     parameters:
110       - project-parameter:
111           project: '{project}'
112       - gerrit-parameter:
113           branch: '{branch}'
114       - os-parameter:
115           os: '{os}'
116       - stream-parameter:
117           stream: '{stream}'
118
119     scm:
120       - gerrit-trigger-scm:
121           credentials-id: 'jenkins-gerrit-credentials'
122           refspec: ''
123           choosing-strategy: 'default'
124
125     wrappers:
126       - fdio-infra-wrappers:
127           build-timeout: '{build-timeout}'
128
129     triggers:
130       - reverse:
131           jobs: 'vpp-merge-{stream}-{os}-{executor-arch}'
132           result: 'success'
133       - gerrit:
134           server-name: 'Primary'
135           trigger-on:
136             - comment-added-contains-event:
137                 comment-contains-value: 'run-docs'
138           projects:
139             - project-compare-type: 'ANT'
140               project-pattern: '{project}'
141               branches:
142                 - branch-compare-type: 'ANT'
143                   branch-pattern: '**/{branch}'
144           skip-vote:
145             successful: true
146             failed: true
147             unstable: true
148             notbuilt: true
149
150     builders:
151       - shell:
152           !include-raw-escape:
153           - ../scripts/setup_executor_env.sh
154       - shell:
155           !include-raw-escape:
156           - ../scripts/setup_vpp_ubuntu_docker_test.sh
157       - shell:
158           !include-raw-escape:
159           - ../scripts/vpp/docs.sh
160
161     publishers:
162       - fdio-infra-publish-docs
163       - fdio-infra-publish
164
165 - job-template:
166     name: 'vpp-docsonly-verify-{stream}-{os}-{executor-arch}'
167
168     project-type: freestyle
169     node: 'builder-{os}-prod-{executor-arch}'
170     concurrent: true
171     allow-empty: 'true'
172     fingerprint: false
173     only-if-success: true
174     default-excludes: false
175
176     parameters:
177       - project-parameter:
178           project: '{project}'
179       - gerrit-parameter:
180           branch: '{branch}'
181       - os-parameter:
182           os: '{os}'
183       - stream-parameter:
184           stream: '{stream}'
185       - gerrit-refspec-parameter:
186           refspec: '{branch-refspec}'
187
188     scm:
189       - gerrit-trigger-scm:
190           credentials-id: 'jenkins-gerrit-credentials'
191           refspec: '$GERRIT_REFSPEC'
192           choosing-strategy: 'gerrit'
193
194     wrappers:
195       - fdio-infra-wrappers:
196           build-timeout: '{build-timeout}'
197
198     triggers:
199       - gerrit:
200           server-name: 'Primary'
201           trigger-on:
202             - patchset-created-event:
203                 exclude-drafts: 'true'
204                 exclude-trivial-rebase: 'false'
205                 exclude-no-code-change: 'false'
206             - draft-published-event
207             - comment-added-contains-event:
208                 comment-contains-value: 'recheck-docsonly'
209           projects:
210             - project-compare-type: 'ANT'
211               project-pattern: '{project}'
212               branches:
213                 - branch-compare-type: 'ANT'
214                   branch-pattern: '**/{branch}'
215               file-paths:
216                 - compare-type: 'REG_EXP'
217                   pattern: '.*/docs/.*'
218           override-votes: true
219           gerrit-build-notbuilt-verified-value: 0
220           gerrit-build-successful-verified-value: 1
221           skip-vote:
222             successful: true
223             failed: false
224             unstable: false
225             notbuilt: false
226
227     builders:
228       - shell:
229           !include-raw-escape:
230           - ../scripts/setup_executor_env.sh
231       - shell:
232           !include-raw-escape:
233           - ../scripts/vpp/commitmsg.sh
234       - shell:
235           !include-raw-escape:
236           - ../scripts/setup_vpp_ubuntu_docker_test.sh
237       - shell:
238           !include-raw-escape:
239           - ../scripts/vpp/docs.sh
240       - shell:
241           !include-raw-escape:
242           - ../scripts/vpp/docs_spell.sh
243
244     publishers:
245       - fdio-infra-publish-docs-7day
246       - fdio-infra-publish
247
248 - job-template:
249     name: 'vpp-docsonly-merge-{stream}-{os}-{executor-arch}'
250
251     project-type: freestyle
252     node: 'builder-{os}-prod-{executor-arch}'
253     concurrent: true
254     allow-empty: 'true'
255     fingerprint: false
256     only-if-success: true
257     default-excludes: false
258
259     parameters:
260       - project-parameter:
261           project: '{project}'
262       - gerrit-parameter:
263           branch: '{branch}'
264       - os-parameter:
265           os: '{os}'
266       - stream-parameter:
267           stream: '{stream}'
268
269     scm:
270       - gerrit-trigger-scm:
271           credentials-id: 'jenkins-gerrit-credentials'
272           refspec: ''
273           choosing-strategy: 'default'
274
275     wrappers:
276       - fdio-infra-wrappers:
277           build-timeout: '{build-timeout}'
278
279     triggers:
280       - gerrit:
281           server-name: 'Primary'
282           trigger-on:
283             - change-merged-event
284             - comment-added-contains-event:
285                 comment-contains-value: 'remerge-docsonly'
286           projects:
287             - project-compare-type: 'ANT'
288               project-pattern: '{project}'
289               branches:
290                 - branch-compare-type: 'ANT'
291                   branch-pattern: '**/{branch}'
292               file-paths:
293                 - compare-type: 'REG_EXP'
294                   pattern: '.*/docs/.*'
295           skip-vote:
296             successful: true
297             failed: false
298             unstable: false
299             notbuilt: false
300
301     builders:
302       - shell:
303           !include-raw-escape:
304           - ../scripts/setup_executor_env.sh
305       - shell:
306           !include-raw-escape:
307           - ../scripts/vpp/commitmsg.sh
308       - shell:
309           !include-raw-escape:
310           - ../scripts/setup_vpp_ubuntu_docker_test.sh
311       - shell:
312           !include-raw-escape:
313           - ../scripts/vpp/docs.sh
314       - shell:
315           !include-raw-escape:
316           - ../scripts/vpp/docs_spell.sh
317
318     publishers:
319       - fdio-infra-publish-docs
320       - fdio-infra-publish