CSIT: Cleanup obsolete 1901 branches
[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>test-cases selection
78               <ul>
79                   <li>test-cases selected using trigger keyword followed by tags
80                   <li>all test-cases are labelled with CSIT RF topic tags
81                       defined in <i>csit/docs/tag_documentation.rst</i>
82               </ul>
83           <li>default tags for vpp-device test type
84               <ul>
85                   <li>devicetest
86               </ul>
87           <li>results
88               <ul>
89                   <li>jjb verify: PASS/FAIL
90                   <li>present: no
91                   <li>analyse: no
92               </ul>
93       </ul>
94
95     project-type: freestyle
96     node: '{executor}'
97     concurrent: true
98     archive-artifacts: 'archive/*.*'
99     latest-only: false
100
101     build-discarder:
102       daysToKeep: '{build-days-to-keep}'
103       numToKeep: '{build-num-to-keep}'
104       artifactDaysToKeep: '{build-artifact-days-to-keep}'
105       artifactNumToKeep: '{build-artifact-num-to-keep}'
106
107     parameters:
108       - project-parameter:
109           project: '{project}'
110       - gerrit-parameter:
111           branch: '{branch}'
112       - os-parameter:
113           os: '{os}'
114       - gerrit-refspec-parameter
115       - gerrit-event-type-parameter
116       - gerrit-event-comment-text-parameter
117       - string:
118           name: ARCHIVE_ARTIFACTS
119           default: '{archive-artifacts}'
120           description: Artifacts to archive to the logs server.
121       # This is an automatic verify job, part of API coverage.
122       # CRC checking is needed to ensure vpp crc job breaks only when intended.
123       # Unlikely to be removed, as this job is primary source of API coverage.
124       - csit-fail-on-crc-mismatch-parameter:
125           fail-on-crc-mismatch: 'True'
126
127     scm:
128       - gerrit-trigger-scm:
129           credentials-id: 'jenkins-gerrit-credentials'
130           refspec: '$GERRIT_REFSPEC'
131           choosing-strategy: 'gerrit'
132
133     wrappers:
134       - fdio-infra-wrappers:
135           build-timeout: '{build-timeout}'
136
137     triggers:
138       - '{trigger}':
139           project: '{project}'
140           branch: '{branch}'
141           skip-vote: '{skip-vote}'
142
143     builders:
144       - shell:
145           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
146
147     publishers:
148       - robot:
149           output-path: archive
150           other-files:
151             - '*.*'
152       - fdio-infra-shiplogs:
153           maven-version: 'mvn33-new'
154
155 - job-template:
156     name: 'csit-vpp-device-{stream_timed}-{os}-{node-arch}-semiweekly'
157     description: |
158       <ul>
159           <li>objective
160               <ul>
161                   <li>Validate latest vpp build from corresponding branch stored
162                       in nexus against verified CSIT codebase of corresponding
163                       branch.
164               </ul>
165           <li>test-cases selection
166               <ul>
167                   <li>pre-selected test-cases
168                   <li>all test-cases are labelled with CSIT RF topic tags
169                       defined in <i>csit/docs/tag_documentation.rst</i>
170               </ul>
171           <li>default tags for vpp-device test type
172               <ul>
173                   <li>devicetest
174               </ul>
175           <li>results
176               <ul>
177                   <li>jjb verify: PASS/FAIL
178                   <li>present: no
179                   <li>analyse: no
180               </ul>
181       </ul>
182
183     project-type: freestyle
184     node: '{executor}'
185     concurrent: false
186     archive-artifacts: 'csit/archive/*.*'
187     latest-only: false
188
189     build-discarder:
190       daysToKeep: '{build-days-to-keep}'
191       numToKeep: '{build-num-to-keep}'
192       artifactDaysToKeep: '{build-artifact-days-to-keep}'
193       artifactNumToKeep: '{build-artifact-num-to-keep}'
194
195     parameters:
196       - project-parameter:
197           project: '{project}'
198       - gerrit-parameter:
199           branch: '{branch}'
200       - os-parameter:
201           os: '{os}'
202       - string:
203           name: ARCHIVE_ARTIFACTS
204           default: '{archive-artifacts}'
205           description: Artifacts to archive to the logs server.
206
207     wrappers:
208       - fdio-infra-wrappers-non-activity-timeout:
209           build-timeout: '{build-timeout}'
210
211     triggers:
212       - timed: '0 4 * * 2,6'
213
214       - gerrit-trigger-manually-triggered:
215           comment-trigger-value: 'csit-verify-vpp'
216           name: '{project}'
217           branch: '{branch}'
218
219     builders:
220       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
221       - inject:
222           properties-file: variables.prop
223       - shell:
224           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
225
226     publishers:
227       - robot:
228           output-path: 'csit/archive'
229           other-files:
230             - '*.*'
231       - fdio-infra-shiplogs:
232           maven-version: 'mvn33-new'
233
234 - job-template:
235     name: 'csit-vpp-device-{stream_timed}-{os}-{node-arch}-weekly'
236     description: |
237       <ul>
238           <li>objective
239               <ul>
240                   <li>Validate CSIT code of corresponding branch against
241                       verified vpp build from corresponding branch.
242               </ul>
243           <li>test-cases selection
244               <ul>
245                   <li>pre-selected test-cases
246                   <li>all test-cases are labelled with CSIT RF topic tags
247                       defined in <i>csit/docs/tag_documentation.rst</i>
248               </ul>
249           <li>default tags for vpp-device test type
250               <ul>
251                   <li>devicetest
252               </ul>
253           <li>results
254               <ul>
255                   <li>jjb verify: PASS/FAIL
256                   <li>present: no
257                   <li>analyse: no
258               </ul>
259       </ul>
260
261     project-type: freestyle
262     node: '{executor}'
263     concurrent: false
264     archive-artifacts: 'archive/*.*'
265     latest-only: false
266
267     build-discarder:
268       daysToKeep: '{build-days-to-keep}'
269       numToKeep: '{build-num-to-keep}'
270       artifactDaysToKeep: '{build-artifact-days-to-keep}'
271       artifactNumToKeep: '{build-artifact-num-to-keep}'
272
273     parameters:
274       - project-parameter:
275           project: '{project}'
276       - gerrit-parameter:
277           branch: '{branch}'
278       - os-parameter:
279           os: '{os}'
280       - string:
281           name: ARCHIVE_ARTIFACTS
282           default: '{archive-artifacts}'
283           description: Artifacts to archive to the logs server.
284
285     scm:
286       - git-scm:
287           credentials-id: 'jenkins-gerrit-credentials'
288           branch: '{branch}'
289
290     wrappers:
291       - fdio-infra-wrappers-non-activity-timeout:
292           build-timeout: '{build-timeout}'
293
294     triggers:
295       - timed: '0 4 * * 0'
296
297       - gerrit-trigger-manually-triggered:
298           comment-trigger-value: 'csit-vpp-ref-verify'
299           name: '{project}'
300           branch: '{branch}'
301
302     builders:
303       - shell:
304           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
305
306     publishers:
307       - robot:
308           output-path: archive
309           other-files:
310             - '*.*'
311       - fdio-infra-shiplogs:
312           maven-version: 'mvn33-new'
313
314 - job-template:
315     name: 'csit-vpp-device-master-ubuntu1804-1n-tx2-csit-verify-hourly'
316     description: |
317       <ul>
318           <li>objective
319               <ul>
320                   <li>Validate CSIT code of corresponding branch against
321                       verified vpp build from corresponding branch.
322               </ul>
323           <li>test-cases selection
324               <ul>
325                   <li>pre-selected test-cases
326                   <li>all test-cases are labelled with CSIT RF topic tags
327                       defined in <i>csit/docs/tag_documentation.rst</i>
328               </ul>
329           <li>default tags for vpp-device test type
330               <ul>
331                   <li>devicetest
332               </ul>
333           <li>results
334               <ul>
335                   <li>jjb verify: PASS/FAIL
336                   <li>present: no
337                   <li>analyse: no
338               </ul>
339       </ul>
340
341     project-type: freestyle
342     node: 'vpp-csit-arm-ubuntu18'
343     concurrent: false
344     archive-artifacts: 'archive/*.*'
345     latest-only: false
346
347     build-discarder:
348       daysToKeep: '{build-days-to-keep}'
349       numToKeep: '{build-num-to-keep}'
350       artifactDaysToKeep: '{build-artifact-days-to-keep}'
351       artifactNumToKeep: '{build-artifact-num-to-keep}'
352
353     parameters:
354       - project-parameter:
355           project: '{project}'
356       - gerrit-parameter:
357           branch: '{branch}'
358       - os-parameter:
359           os: 'ubuntu1804'
360       - string:
361           name: ARCHIVE_ARTIFACTS
362           default: '{archive-artifacts}'
363           description: Artifacts to archive to the logs server.
364
365     scm:
366       - git-scm:
367           credentials-id: 'jenkins-gerrit-credentials'
368           branch: '{branch}'
369
370     wrappers:
371       - fdio-infra-wrappers-non-activity-timeout:
372           build-timeout: '{build-timeout}'
373
374     triggers:
375       - timed: '0 * * * *'
376
377     builders:
378       - shell:
379           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
380
381     publishers:
382       - robot:
383           output-path: archive
384           other-files:
385             - '*.*'
386       - fdio-infra-shiplogs:
387           maven-version: 'mvn33-new'
388
389 - job-template:
390     name: 'csit-vpp-device-master-ubuntu1804-1n-tx2-vpp-verify-hourly'
391     description: |
392       <ul>
393           <li>objective
394               <ul>
395                   <li>Validate latest vpp build from corresponding branch stored
396                       in nexus against verified CSIT codebase of corresponding
397                       branch.
398               </ul>
399           <li>test-cases selection
400               <ul>
401                   <li>pre-selected test-cases
402                   <li>all test-cases are labelled with CSIT RF topic tags
403                       defined in <i>csit/docs/tag_documentation.rst</i>
404               </ul>
405           <li>default tags for vpp-device test type
406               <ul>
407                   <li>devicetest
408               </ul>
409           <li>results
410               <ul>
411                   <li>jjb verify: PASS/FAIL
412                   <li>present: no
413                   <li>analyse: no
414               </ul>
415       </ul>
416
417     project-type: freestyle
418     node: 'vpp-csit-arm-ubuntu18'
419     concurrent: false
420     archive-artifacts: 'csit/archive/*.*'
421     latest-only: false
422
423     build-discarder:
424       daysToKeep: '{build-days-to-keep}'
425       numToKeep: '{build-num-to-keep}'
426       artifactDaysToKeep: '{build-artifact-days-to-keep}'
427       artifactNumToKeep: '{build-artifact-num-to-keep}'
428
429     parameters:
430       - project-parameter:
431           project: '{project}'
432       - gerrit-parameter:
433           branch: '{branch}'
434       - os-parameter:
435           os: 'ubuntu1804'
436       - string:
437           name: ARCHIVE_ARTIFACTS
438           default: '{archive-artifacts}'
439           description: Artifacts to archive to the logs server.
440
441     wrappers:
442       - fdio-infra-wrappers-non-activity-timeout:
443           build-timeout: '{build-timeout}'
444
445     triggers:
446       - timed: '30 * * * *'
447
448     builders:
449       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
450       - inject:
451           properties-file: variables.prop
452       - shell:
453           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
454
455     publishers:
456       - robot:
457           output-path: 'csit/archive'
458           other-files:
459             - '*.*'
460       - fdio-infra-shiplogs:
461           maven-version: 'mvn33-new'