CSIT: Add executor value to job description
[ci-management.git] / jjb / csit / csit-vpp-device.yaml
1 # Copyright (c) 2019 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_timed}-{os}-{node-arch}-semiweekly'
29       - 'csit-vpp-device-{stream_timed}-{os}-{node-arch}-weekly'
30       - 'csit-vpp-device-master-ubuntu1804-1n-tx2-csit-verify-hourly'
31       - 'csit-vpp-device-master-ubuntu1804-1n-tx2-vpp-verify-hourly'
32
33     project: 'csit'
34     executor: 'vpp-csit-device'
35     branch: 'master'
36     branch-id: 'oper'
37     trigger: 'gerrit-trigger-csit-vpp-devicetest-full'
38     stream_timed:
39       - master:
40           branch: 'master'
41           branch-id: 'oper'
42     stream:
43       - master:
44           branch: 'master'
45           branch-id: 'oper'
46       - '1904':
47           branch: 'rls1904'
48           branch-id: 'oper-rls1904'
49       - '1908':
50           branch: 'rls1908_1'
51           branch-id: 'oper-rls1908_1'
52     exclude:
53       - stream: '1904'
54         os: 'ubuntu1804'
55         node-arch: '1n-tx2'
56       - stream_timed: '1908'
57         os: 'ubuntu1804'
58         node-arch: '1n-tx2'
59       - stream_timed: 'master'
60         os: 'ubuntu1804'
61         node-arch: '1n-tx2'
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: jjb/csit/include-raw-csit-device-verify.sh
150
151     publishers:
152       - robot:
153           output-path: archive
154           other-files:
155             - '*.*'
156       - fdio-infra-shiplogs:
157           maven-version: 'mvn33-new'
158
159 - job-template:
160     name: 'csit-vpp-device-{stream_timed}-{os}-{node-arch}-semiweekly'
161     description: |
162       <ul>
163           <li>objective
164               <ul>
165                   <li>Validate latest vpp build from corresponding branch stored
166                       in nexus against verified CSIT codebase of corresponding
167                       branch.
168               </ul>
169           <li>executor
170               <ul>
171                   <li>{executor}
172               </ul>
173           <li>test-cases selection
174               <ul>
175                   <li>pre-selected test-cases
176                   <li>all test-cases are labelled with CSIT RF topic tags
177                       defined in <i>csit/docs/tag_documentation.rst</i>
178               </ul>
179           <li>default tags for vpp-device test type
180               <ul>
181                   <li>devicetest
182               </ul>
183           <li>results
184               <ul>
185                   <li>jjb verify: PASS/FAIL
186                   <li>present: no
187                   <li>analyse: no
188               </ul>
189       </ul>
190
191     project-type: freestyle
192     node: '{executor}'
193     concurrent: false
194     archive-artifacts: 'csit/archive/*.*'
195     latest-only: false
196
197     build-discarder:
198       daysToKeep: '{build-days-to-keep}'
199       numToKeep: '{build-num-to-keep}'
200       artifactDaysToKeep: '{build-artifact-days-to-keep}'
201       artifactNumToKeep: '{build-artifact-num-to-keep}'
202
203     parameters:
204       - project-parameter:
205           project: '{project}'
206       - gerrit-parameter:
207           branch: '{branch}'
208       - os-parameter:
209           os: '{os}'
210       - string:
211           name: ARCHIVE_ARTIFACTS
212           default: '{archive-artifacts}'
213           description: Artifacts to archive to the logs server.
214
215     wrappers:
216       - fdio-infra-wrappers-non-activity-timeout:
217           build-timeout: '{build-timeout}'
218
219     triggers:
220       - timed: '0 4 * * 2,6'
221
222       - gerrit-trigger-manually-triggered:
223           comment-trigger-value: 'csit-verify-vpp'
224           name: '{project}'
225           branch: '{branch}'
226
227     builders:
228       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
229       - inject:
230           properties-file: variables.prop
231       - shell:
232           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
233
234     publishers:
235       - robot:
236           output-path: 'csit/archive'
237           other-files:
238             - '*.*'
239       - fdio-infra-shiplogs:
240           maven-version: 'mvn33-new'
241
242 - job-template:
243     name: 'csit-vpp-device-{stream_timed}-{os}-{node-arch}-weekly'
244     description: |
245       <ul>
246           <li>objective
247               <ul>
248                   <li>Validate CSIT code of corresponding branch against
249                       verified vpp build from corresponding branch.
250               </ul>
251           <li>executor
252               <ul>
253                   <li>{executor}
254               </ul>
255           <li>test-cases selection
256               <ul>
257                   <li>pre-selected test-cases
258                   <li>all test-cases are labelled with CSIT RF topic tags
259                       defined in <i>csit/docs/tag_documentation.rst</i>
260               </ul>
261           <li>default tags for vpp-device test type
262               <ul>
263                   <li>devicetest
264               </ul>
265           <li>results
266               <ul>
267                   <li>jjb verify: PASS/FAIL
268                   <li>present: no
269                   <li>analyse: no
270               </ul>
271       </ul>
272
273     project-type: freestyle
274     node: '{executor}'
275     concurrent: false
276     archive-artifacts: 'archive/*.*'
277     latest-only: false
278
279     build-discarder:
280       daysToKeep: '{build-days-to-keep}'
281       numToKeep: '{build-num-to-keep}'
282       artifactDaysToKeep: '{build-artifact-days-to-keep}'
283       artifactNumToKeep: '{build-artifact-num-to-keep}'
284
285     parameters:
286       - project-parameter:
287           project: '{project}'
288       - gerrit-parameter:
289           branch: '{branch}'
290       - os-parameter:
291           os: '{os}'
292       - string:
293           name: ARCHIVE_ARTIFACTS
294           default: '{archive-artifacts}'
295           description: Artifacts to archive to the logs server.
296
297     scm:
298       - git-scm:
299           credentials-id: 'jenkins-gerrit-credentials'
300           branch: '{branch}'
301
302     wrappers:
303       - fdio-infra-wrappers-non-activity-timeout:
304           build-timeout: '{build-timeout}'
305
306     triggers:
307       - timed: '0 4 * * 0'
308
309       - gerrit-trigger-manually-triggered:
310           comment-trigger-value: 'csit-vpp-ref-verify'
311           name: '{project}'
312           branch: '{branch}'
313
314     builders:
315       - shell:
316           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
317
318     publishers:
319       - robot:
320           output-path: archive
321           other-files:
322             - '*.*'
323       - fdio-infra-shiplogs:
324           maven-version: 'mvn33-new'
325
326 - job-template:
327     name: 'csit-vpp-device-master-ubuntu1804-1n-tx2-csit-verify-hourly'
328     description: |
329       <ul>
330           <li>objective
331               <ul>
332                   <li>Validate CSIT code of corresponding branch against
333                       verified vpp build from corresponding branch.
334               </ul>
335           <li>executor
336               <ul>
337                   <li>vpp-csit-arm-ubuntu18
338               </ul>
339           <li>test-cases selection
340               <ul>
341                   <li>pre-selected test-cases
342                   <li>all test-cases are labelled with CSIT RF topic tags
343                       defined in <i>csit/docs/tag_documentation.rst</i>
344               </ul>
345           <li>default tags for vpp-device test type
346               <ul>
347                   <li>devicetest
348               </ul>
349           <li>results
350               <ul>
351                   <li>jjb verify: PASS/FAIL
352                   <li>present: no
353                   <li>analyse: no
354               </ul>
355       </ul>
356
357     project-type: freestyle
358     node: 'vpp-csit-arm-ubuntu18'
359     concurrent: false
360     archive-artifacts: 'archive/*.*'
361     latest-only: false
362
363     build-discarder:
364       daysToKeep: '{build-days-to-keep}'
365       numToKeep: '{build-num-to-keep}'
366       artifactDaysToKeep: '{build-artifact-days-to-keep}'
367       artifactNumToKeep: '{build-artifact-num-to-keep}'
368
369     parameters:
370       - project-parameter:
371           project: '{project}'
372       - gerrit-parameter:
373           branch: '{branch}'
374       - os-parameter:
375           os: 'ubuntu1804'
376       - string:
377           name: ARCHIVE_ARTIFACTS
378           default: '{archive-artifacts}'
379           description: Artifacts to archive to the logs server.
380
381     scm:
382       - git-scm:
383           credentials-id: 'jenkins-gerrit-credentials'
384           branch: '{branch}'
385
386     wrappers:
387       - fdio-infra-wrappers-non-activity-timeout:
388           build-timeout: '{build-timeout}'
389
390     triggers:
391       - timed: '0 * * * *'
392
393     builders:
394       - shell:
395           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
396
397     publishers:
398       - robot:
399           output-path: archive
400           other-files:
401             - '*.*'
402       - fdio-infra-shiplogs:
403           maven-version: 'mvn33-new'
404
405 - job-template:
406     name: 'csit-vpp-device-master-ubuntu1804-1n-tx2-vpp-verify-hourly'
407     description: |
408       <ul>
409           <li>objective
410               <ul>
411                   <li>Validate latest vpp build from corresponding branch stored
412                       in nexus against verified CSIT codebase of corresponding
413                       branch.
414               </ul>
415           <li>executor
416               <ul>
417                   <li>vpp-csit-arm-ubuntu18
418               </ul>
419           <li>test-cases selection
420               <ul>
421                   <li>pre-selected test-cases
422                   <li>all test-cases are labelled with CSIT RF topic tags
423                       defined in <i>csit/docs/tag_documentation.rst</i>
424               </ul>
425           <li>default tags for vpp-device test type
426               <ul>
427                   <li>devicetest
428               </ul>
429           <li>results
430               <ul>
431                   <li>jjb verify: PASS/FAIL
432                   <li>present: no
433                   <li>analyse: no
434               </ul>
435       </ul>
436
437     project-type: freestyle
438     node: 'vpp-csit-arm-ubuntu18'
439     concurrent: false
440     archive-artifacts: 'csit/archive/*.*'
441     latest-only: false
442
443     build-discarder:
444       daysToKeep: '{build-days-to-keep}'
445       numToKeep: '{build-num-to-keep}'
446       artifactDaysToKeep: '{build-artifact-days-to-keep}'
447       artifactNumToKeep: '{build-artifact-num-to-keep}'
448
449     parameters:
450       - project-parameter:
451           project: '{project}'
452       - gerrit-parameter:
453           branch: '{branch}'
454       - os-parameter:
455           os: 'ubuntu1804'
456       - string:
457           name: ARCHIVE_ARTIFACTS
458           default: '{archive-artifacts}'
459           description: Artifacts to archive to the logs server.
460
461     wrappers:
462       - fdio-infra-wrappers-non-activity-timeout:
463           build-timeout: '{build-timeout}'
464
465     triggers:
466       - timed: '30 * * * *'
467
468     builders:
469       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
470       - inject:
471           properties-file: variables.prop
472       - shell:
473           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
474
475     publishers:
476       - robot:
477           output-path: 'csit/archive'
478           other-files:
479             - '*.*'
480       - fdio-infra-shiplogs:
481           maven-version: 'mvn33-new'