Merge "Add CSIT rls1908_2 branch"
[ci-management.git] / jjb / csit / csit-vpp-device.yaml
1 # Copyright (c) 2020 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - project:
16     name: csit-vpp-device
17     description: 'CSIT jenkins jobs.'
18     os:
19       - 'ubuntu1804'
20     node-arch:
21       - '1n-skx'
22       - '1n-tx2':
23           executor: 'vpp-csit-arm-ubuntu18'
24           skip-vote: 'true'
25           trigger: 'gerrit-trigger-csit-vpp-devicetest-manual'
26     jobs:
27       - 'csit-vpp-device-{stream}-{os}-{node-arch}'
28       - 'csit-vpp-device-{stream}-{os}-{node-arch}-semiweekly':
29           stream:
30             - master:
31                 branch: 'master'
32                 branch-id: 'oper'
33             - '1908_2':
34                 branch: 'rls1908_2'
35                 branch-id: 'oper-rls1908_2'
36       - 'csit-vpp-device-{stream}-{os}-{node-arch}-weekly':
37           stream:
38             - master:
39                 branch: 'master'
40                 branch-id: 'oper'
41             - '1908_2':
42                 branch: 'rls1908_2'
43                 branch-id: 'oper-rls1908_2'
44       - 'csit-vpp-device-master-{os}-1n-tx2-csit-verify-hourly'
45       - 'csit-vpp-device-master-{os}-1n-tx2-vpp-verify-hourly'
46
47     project: 'csit'
48     executor: 'vpp-csit-device'
49     branch: 'master'
50     branch-id: 'oper'
51     trigger: 'gerrit-trigger-csit-vpp-devicetest-full'
52     stream:
53       - master:
54           branch: 'master'
55           branch-id: 'oper'
56       - '1908_2':
57           branch: 'rls1908_2'
58           branch-id: 'oper-rls1908_2'
59       - '2001':
60           branch: 'rls2001'
61           branch-id: 'oper-rls2001'
62
63 - job-template:
64     name: 'csit-vpp-device-{stream}-{os}-{node-arch}'
65     description: |
66       <ul>
67           <li>objective
68               <ul>
69                   <li>vpp-device verify - per csit gerrit patch
70               </ul>
71           <li>job
72               <ul>
73                   <li>name: <b>csit-vpp-device-{stream}-{os}-{node-arch}</b>
74                   <li>trigger: keyword in comment to csit patch:
75                       <b>csit-devicetest tag_list</b>
76               </ul>
77           <li>executor
78               <ul>
79                   <li>{executor}
80               </ul>
81           <li>test-cases selection
82               <ul>
83                   <li>test-cases selected using trigger keyword followed by tags
84                   <li>all test-cases are labelled with CSIT RF topic tags
85                       defined in <i>csit/docs/tag_documentation.rst</i>
86               </ul>
87           <li>default tags for vpp-device test type
88               <ul>
89                   <li>devicetest
90               </ul>
91           <li>results
92               <ul>
93                   <li>jjb verify: PASS/FAIL
94                   <li>present: no
95                   <li>analyse: no
96               </ul>
97       </ul>
98
99     project-type: freestyle
100     node: '{executor}'
101     concurrent: true
102     archive-artifacts: 'archive/*.*'
103     latest-only: false
104
105     build-discarder:
106       daysToKeep: '{build-days-to-keep}'
107       numToKeep: '{build-num-to-keep}'
108       artifactDaysToKeep: '{build-artifact-days-to-keep}'
109       artifactNumToKeep: '{build-artifact-num-to-keep}'
110
111     parameters:
112       - project-parameter:
113           project: '{project}'
114       - gerrit-parameter:
115           branch: '{branch}'
116       - os-parameter:
117           os: '{os}'
118       - gerrit-refspec-parameter
119       - gerrit-event-type-parameter
120       - gerrit-event-comment-text-parameter
121       - string:
122           name: ARCHIVE_ARTIFACTS
123           default: '{archive-artifacts}'
124           description: Artifacts to archive to the logs server.
125       # This is an automatic verify job, part of API coverage.
126       # CRC checking is needed to ensure vpp crc job breaks only when intended.
127       # Unlikely to be removed, as this job is primary source of API coverage.
128       - csit-fail-on-crc-mismatch-parameter:
129           fail-on-crc-mismatch: 'True'
130
131     scm:
132       - gerrit-trigger-scm:
133           credentials-id: 'jenkins-gerrit-credentials'
134           refspec: '$GERRIT_REFSPEC'
135           choosing-strategy: 'gerrit'
136
137     wrappers:
138       - fdio-infra-wrappers:
139           build-timeout: '{build-timeout}'
140
141     triggers:
142       - '{trigger}':
143           project: '{project}'
144           branch: '{branch}'
145           skip-vote: '{skip-vote}'
146
147     builders:
148       - shell:
149           !include-raw-escape:
150           - ../scripts/csit/device-verify.sh
151
152     publishers:
153       - robot:
154           output-path: archive
155           other-files:
156             - '*.*'
157       - fdio-infra-shiplogs:
158           maven-version: 'mvn33-new'
159
160 - job-template:
161     name: 'csit-vpp-device-{stream}-{os}-{node-arch}-semiweekly'
162     description: |
163       <ul>
164           <li>objective
165               <ul>
166                   <li>Validate latest vpp build from corresponding branch stored
167                       in nexus against verified CSIT codebase of corresponding
168                       branch.
169               </ul>
170           <li>executor
171               <ul>
172                   <li>{executor}
173               </ul>
174           <li>test-cases selection
175               <ul>
176                   <li>pre-selected test-cases
177                   <li>all test-cases are labelled with CSIT RF topic tags
178                       defined in <i>csit/docs/tag_documentation.rst</i>
179               </ul>
180           <li>default tags for vpp-device test type
181               <ul>
182                   <li>devicetest
183               </ul>
184           <li>results
185               <ul>
186                   <li>jjb verify: PASS/FAIL
187                   <li>present: no
188                   <li>analyse: no
189               </ul>
190       </ul>
191
192     project-type: freestyle
193     node: '{executor}'
194     concurrent: false
195     archive-artifacts: 'csit/archive/*.*'
196     latest-only: false
197
198     build-discarder:
199       daysToKeep: '{build-days-to-keep}'
200       numToKeep: '{build-num-to-keep}'
201       artifactDaysToKeep: '{build-artifact-days-to-keep}'
202       artifactNumToKeep: '{build-artifact-num-to-keep}'
203
204     parameters:
205       - project-parameter:
206           project: '{project}'
207       - gerrit-parameter:
208           branch: '{branch}'
209       - os-parameter:
210           os: '{os}'
211       - string:
212           name: ARCHIVE_ARTIFACTS
213           default: '{archive-artifacts}'
214           description: Artifacts to archive to the logs server.
215
216     wrappers:
217       - fdio-infra-wrappers-non-activity-timeout:
218           build-timeout: '{build-timeout}'
219
220     triggers:
221       - timed: '0 4 * * 2,6'
222
223       - gerrit-trigger-manually-triggered:
224           comment-trigger-value: 'csit-verify-vpp'
225           name: '{project}'
226           branch: '{branch}'
227
228     builders:
229       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
230       - inject:
231           properties-file: variables.prop
232       - shell:
233           !include-raw-escape:
234           - ../scripts/csit/device-semiweekly.sh
235
236     publishers:
237       - robot:
238           output-path: 'csit/archive'
239           other-files:
240             - '*.*'
241       - fdio-infra-shiplogs:
242           maven-version: 'mvn33-new'
243
244 - job-template:
245     name: 'csit-vpp-device-{stream}-{os}-{node-arch}-weekly'
246     description: |
247       <ul>
248           <li>objective
249               <ul>
250                   <li>Validate CSIT code of corresponding branch against
251                       verified vpp build from corresponding branch.
252               </ul>
253           <li>executor
254               <ul>
255                   <li>{executor}
256               </ul>
257           <li>test-cases selection
258               <ul>
259                   <li>pre-selected test-cases
260                   <li>all test-cases are labelled with CSIT RF topic tags
261                       defined in <i>csit/docs/tag_documentation.rst</i>
262               </ul>
263           <li>default tags for vpp-device test type
264               <ul>
265                   <li>devicetest
266               </ul>
267           <li>results
268               <ul>
269                   <li>jjb verify: PASS/FAIL
270                   <li>present: no
271                   <li>analyse: no
272               </ul>
273       </ul>
274
275     project-type: freestyle
276     node: '{executor}'
277     concurrent: false
278     archive-artifacts: 'archive/*.*'
279     latest-only: false
280
281     build-discarder:
282       daysToKeep: '{build-days-to-keep}'
283       numToKeep: '{build-num-to-keep}'
284       artifactDaysToKeep: '{build-artifact-days-to-keep}'
285       artifactNumToKeep: '{build-artifact-num-to-keep}'
286
287     parameters:
288       - project-parameter:
289           project: '{project}'
290       - gerrit-parameter:
291           branch: '{branch}'
292       - os-parameter:
293           os: '{os}'
294       - string:
295           name: ARCHIVE_ARTIFACTS
296           default: '{archive-artifacts}'
297           description: Artifacts to archive to the logs server.
298
299     scm:
300       - git-scm:
301           credentials-id: 'jenkins-gerrit-credentials'
302           branch: '{branch}'
303
304     wrappers:
305       - fdio-infra-wrappers-non-activity-timeout:
306           build-timeout: '{build-timeout}'
307
308     triggers:
309       - timed: '0 4 * * 0'
310
311       - gerrit-trigger-manually-triggered:
312           comment-trigger-value: 'csit-vpp-ref-verify'
313           name: '{project}'
314           branch: '{branch}'
315
316     builders:
317       - shell:
318           !include-raw-escape:
319           - ../scripts/csit/device-verify.sh
320
321     publishers:
322       - robot:
323           output-path: archive
324           other-files:
325             - '*.*'
326       - fdio-infra-shiplogs:
327           maven-version: 'mvn33-new'
328
329 - job-template:
330     name: 'csit-vpp-device-master-{os}-1n-tx2-csit-verify-hourly'
331     description: |
332       <ul>
333           <li>objective
334               <ul>
335                   <li>Validate CSIT code of corresponding branch against
336                       verified vpp build from corresponding branch.
337               </ul>
338           <li>executor
339               <ul>
340                   <li>vpp-csit-arm-ubuntu18
341               </ul>
342           <li>test-cases selection
343               <ul>
344                   <li>pre-selected test-cases
345                   <li>all test-cases are labelled with CSIT RF topic tags
346                       defined in <i>csit/docs/tag_documentation.rst</i>
347               </ul>
348           <li>default tags for vpp-device test type
349               <ul>
350                   <li>devicetest
351               </ul>
352           <li>results
353               <ul>
354                   <li>jjb verify: PASS/FAIL
355                   <li>present: no
356                   <li>analyse: no
357               </ul>
358       </ul>
359
360     project-type: freestyle
361     node: 'vpp-csit-arm-ubuntu18'
362     concurrent: false
363     archive-artifacts: 'archive/*.*'
364     latest-only: false
365
366     build-discarder:
367       daysToKeep: '{build-days-to-keep}'
368       numToKeep: '{build-num-to-keep}'
369       artifactDaysToKeep: '{build-artifact-days-to-keep}'
370       artifactNumToKeep: '{build-artifact-num-to-keep}'
371
372     parameters:
373       - project-parameter:
374           project: '{project}'
375       - gerrit-parameter:
376           branch: '{branch}'
377       - os-parameter:
378           os: 'ubuntu1804'
379       - string:
380           name: ARCHIVE_ARTIFACTS
381           default: '{archive-artifacts}'
382           description: Artifacts to archive to the logs server.
383
384     scm:
385       - git-scm:
386           credentials-id: 'jenkins-gerrit-credentials'
387           branch: '{branch}'
388
389     wrappers:
390       - fdio-infra-wrappers-non-activity-timeout:
391           build-timeout: '{build-timeout}'
392
393     triggers:
394       - timed: '0 * * * *'
395
396     builders:
397       - shell:
398           !include-raw-escape:
399           - ../scripts/csit/device-verify.sh
400
401     publishers:
402       - robot:
403           output-path: archive
404           other-files:
405             - '*.*'
406       - fdio-infra-shiplogs:
407           maven-version: 'mvn33-new'
408
409 - job-template:
410     name: 'csit-vpp-device-master-{os}-1n-tx2-vpp-verify-hourly'
411     description: |
412       <ul>
413           <li>objective
414               <ul>
415                   <li>Validate latest vpp build from corresponding branch stored
416                       in nexus against verified CSIT codebase of corresponding
417                       branch.
418               </ul>
419           <li>executor
420               <ul>
421                   <li>vpp-csit-arm-ubuntu18
422               </ul>
423           <li>test-cases selection
424               <ul>
425                   <li>pre-selected test-cases
426                   <li>all test-cases are labelled with CSIT RF topic tags
427                       defined in <i>csit/docs/tag_documentation.rst</i>
428               </ul>
429           <li>default tags for vpp-device test type
430               <ul>
431                   <li>devicetest
432               </ul>
433           <li>results
434               <ul>
435                   <li>jjb verify: PASS/FAIL
436                   <li>present: no
437                   <li>analyse: no
438               </ul>
439       </ul>
440
441     project-type: freestyle
442     node: 'vpp-csit-arm-ubuntu18'
443     concurrent: false
444     archive-artifacts: 'csit/archive/*.*'
445     latest-only: false
446
447     build-discarder:
448       daysToKeep: '{build-days-to-keep}'
449       numToKeep: '{build-num-to-keep}'
450       artifactDaysToKeep: '{build-artifact-days-to-keep}'
451       artifactNumToKeep: '{build-artifact-num-to-keep}'
452
453     parameters:
454       - project-parameter:
455           project: '{project}'
456       - gerrit-parameter:
457           branch: '{branch}'
458       - os-parameter:
459           os: 'ubuntu1804'
460       - string:
461           name: ARCHIVE_ARTIFACTS
462           default: '{archive-artifacts}'
463           description: Artifacts to archive to the logs server.
464
465     wrappers:
466       - fdio-infra-wrappers-non-activity-timeout:
467           build-timeout: '{build-timeout}'
468
469     triggers:
470       - timed: '30 * * * *'
471
472     builders:
473       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
474       - inject:
475           properties-file: variables.prop
476       - shell:
477           !include-raw-escape:
478           - ../scripts/csit/device-semiweekly.sh
479
480     publishers:
481       - robot:
482           output-path: 'csit/archive'
483           other-files:
484             - '*.*'
485       - fdio-infra-shiplogs:
486           maven-version: 'mvn33-new'