CSIT: Remove 1908_1 and 1908_2 jobs
[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     jobs:
26       - 'csit-vpp-device-{stream}-{os}-{node-arch}'
27       - 'csit-vpp-device-{stream}-{os}-{node-arch}-semiweekly':
28           stream:
29             - master:
30                 branch: 'master'
31                 branch-id: 'oper'
32             - '2009_lts':
33                 branch: 'rls2009_lts'
34                 branch-id: 'oper-rls2009_lts'
35       - 'csit-vpp-device-{stream}-{os}-{node-arch}-weekly':
36           stream:
37             - master:
38                 branch: 'master'
39                 branch-id: 'oper'
40             - '2009_lts':
41                 branch: 'rls2009_lts'
42                 branch-id: 'oper-rls2009_lts'
43
44     project: 'csit'
45     executor: 'vpp-csit-device'
46     branch: 'master'
47     branch-id: 'oper'
48     stream:
49       - master:
50           branch: 'master'
51           branch-id: 'oper'
52       - '2005':
53           branch: 'rls2005'
54           branch-id: 'oper-rls2005'
55       - '2009':
56           branch: 'rls2009'
57           branch-id: 'oper-rls2009'
58       - '2009_lts':
59           branch: 'rls2009_lts'
60           branch-id: 'oper-rls2009_lts'
61     exclude:
62       - stream: '2005'
63         node-arch: '1n-tx2'
64
65 - job-template:
66     name: 'csit-vpp-device-{stream}-{os}-{node-arch}'
67     description: |
68       <ul>
69           <li>objective
70               <ul>
71                   <li>vpp-device verify - per csit gerrit patch
72               </ul>
73           <li>job
74               <ul>
75                   <li>name: <b>csit-vpp-device-{stream}-{os}-{node-arch}</b>
76                   <li>trigger: keyword in comment to csit patch:
77                       <b>csit-devicetest tag_list</b>
78               </ul>
79           <li>executor
80               <ul>
81                   <li>{executor}
82               </ul>
83           <li>test-cases selection
84               <ul>
85                   <li>test-cases selected using trigger keyword followed by tags
86                   <li>all test-cases are labelled with CSIT RF topic tags
87                       defined in <i>csit/docs/tag_documentation.rst</i>
88               </ul>
89           <li>default tags for vpp-device test type
90               <ul>
91                   <li>devicetest
92               </ul>
93           <li>results
94               <ul>
95                   <li>jjb verify: PASS/FAIL
96                   <li>present: no
97                   <li>analyse: no
98               </ul>
99       </ul>
100
101     project-type: freestyle
102     node: '{executor}'
103     concurrent: true
104     archive-artifacts: 'archive/*.*'
105     latest-only: false
106
107     build-discarder:
108       daysToKeep: '{build-days-to-keep}'
109       numToKeep: '{build-num-to-keep}'
110       artifactDaysToKeep: '{build-artifact-days-to-keep}'
111       artifactNumToKeep: '{build-artifact-num-to-keep}'
112
113     parameters:
114       - project-parameter:
115           project: '{project}'
116       - gerrit-parameter:
117           branch: '{branch}'
118       - os-parameter:
119           os: '{os}'
120       - gerrit-refspec-parameter
121       - gerrit-event-type-parameter
122       - gerrit-event-comment-text-parameter
123       - string:
124           name: ARCHIVE_ARTIFACTS
125           default: '{archive-artifacts}'
126           description: Artifacts to archive to the logs server.
127       # This is an automatic verify job, part of API coverage.
128       # CRC checking is needed to ensure vpp crc job breaks only when intended.
129       # Unlikely to be removed, as this job is primary source of API coverage.
130       - csit-fail-on-crc-mismatch-parameter:
131           fail-on-crc-mismatch: 'True'
132
133     scm:
134       - gerrit-trigger-scm:
135           credentials-id: 'jenkins-gerrit-credentials'
136           refspec: '$GERRIT_REFSPEC'
137           choosing-strategy: 'gerrit'
138
139     wrappers:
140       - fdio-infra-wrappers:
141           build-timeout: '{build-timeout}'
142
143     triggers:
144       - 'gerrit-trigger-csit-vpp-devicetest-full':
145           project: '{project}'
146           branch: '{branch}'
147           skip-vote: '{skip-vote}'
148
149     builders:
150       - shell:
151           !include-raw-escape:
152           - ../scripts/setup_executor_env.sh
153       - shell:
154           !include-raw-escape:
155           - ../scripts/csit/device-verify.sh
156
157     publishers:
158       - robot:
159           output-path: 'archives'
160           other-files:
161             - '*.*'
162       - fdio-infra-shiplogs:
163           maven-version: 'mvn33-new'
164
165 - job-template:
166     name: 'csit-vpp-device-{stream}-{os}-{node-arch}-semiweekly'
167     description: |
168       <ul>
169           <li>objective
170               <ul>
171                   <li>Validate latest vpp build from corresponding branch stored
172                       in nexus against verified CSIT codebase of corresponding
173                       branch.
174               </ul>
175           <li>executor
176               <ul>
177                   <li>{executor}
178               </ul>
179           <li>test-cases selection
180               <ul>
181                   <li>pre-selected test-cases
182                   <li>all test-cases are labelled with CSIT RF topic tags
183                       defined in <i>csit/docs/tag_documentation.rst</i>
184               </ul>
185           <li>default tags for vpp-device test type
186               <ul>
187                   <li>devicetest
188               </ul>
189           <li>results
190               <ul>
191                   <li>jjb verify: PASS/FAIL
192                   <li>present: no
193                   <li>analyse: no
194               </ul>
195       </ul>
196
197     project-type: freestyle
198     node: '{executor}'
199     concurrent: false
200     archive-artifacts: 'csit/archive/*.*'
201     latest-only: false
202
203     build-discarder:
204       daysToKeep: '{build-days-to-keep}'
205       numToKeep: '{build-num-to-keep}'
206       artifactDaysToKeep: '{build-artifact-days-to-keep}'
207       artifactNumToKeep: '{build-artifact-num-to-keep}'
208
209     parameters:
210       - project-parameter:
211           project: '{project}'
212       - gerrit-parameter:
213           branch: '{branch}'
214       - os-parameter:
215           os: '{os}'
216       - string:
217           name: ARCHIVE_ARTIFACTS
218           default: '{archive-artifacts}'
219           description: Artifacts to archive to the logs server.
220
221     wrappers:
222       - fdio-infra-wrappers-non-activity-timeout:
223           build-timeout: '{build-timeout}'
224
225     triggers:
226       - timed: '0 4 * * 2,6'
227
228       - gerrit-trigger-manually-triggered:
229           comment-trigger-value: 'csit-verify-vpp'
230           name: '{project}'
231           branch: '{branch}'
232
233     builders:
234       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
235       - inject:
236           properties-file: variables.prop
237       - shell:
238           !include-raw-escape:
239           - ../scripts/setup_executor_env.sh
240       - shell:
241           !include-raw-escape:
242           - ../scripts/csit/device-semiweekly.sh
243
244     publishers:
245       - robot:
246           output-path: 'archives'
247           other-files:
248             - '*.*'
249       - fdio-infra-shiplogs:
250           maven-version: 'mvn33-new'
251
252 - job-template:
253     name: 'csit-vpp-device-{stream}-{os}-{node-arch}-weekly'
254     description: |
255       <ul>
256           <li>objective
257               <ul>
258                   <li>Validate CSIT code of corresponding branch against
259                       verified vpp build from corresponding branch.
260               </ul>
261           <li>executor
262               <ul>
263                   <li>{executor}
264               </ul>
265           <li>test-cases selection
266               <ul>
267                   <li>pre-selected test-cases
268                   <li>all test-cases are labelled with CSIT RF topic tags
269                       defined in <i>csit/docs/tag_documentation.rst</i>
270               </ul>
271           <li>default tags for vpp-device test type
272               <ul>
273                   <li>devicetest
274               </ul>
275           <li>results
276               <ul>
277                   <li>jjb verify: PASS/FAIL
278                   <li>present: no
279                   <li>analyse: no
280               </ul>
281       </ul>
282
283     project-type: freestyle
284     node: '{executor}'
285     concurrent: false
286     archive-artifacts: 'archive/*.*'
287     latest-only: false
288
289     build-discarder:
290       daysToKeep: '{build-days-to-keep}'
291       numToKeep: '{build-num-to-keep}'
292       artifactDaysToKeep: '{build-artifact-days-to-keep}'
293       artifactNumToKeep: '{build-artifact-num-to-keep}'
294
295     parameters:
296       - project-parameter:
297           project: '{project}'
298       - gerrit-parameter:
299           branch: '{branch}'
300       - os-parameter:
301           os: '{os}'
302       - string:
303           name: ARCHIVE_ARTIFACTS
304           default: '{archive-artifacts}'
305           description: Artifacts to archive to the logs server.
306
307     scm:
308       - git-scm:
309           credentials-id: 'jenkins-gerrit-credentials'
310           branch: '{branch}'
311
312     wrappers:
313       - fdio-infra-wrappers-non-activity-timeout:
314           build-timeout: '{build-timeout}'
315
316     triggers:
317       - timed: '0 4 * * 0'
318
319       - gerrit-trigger-manually-triggered:
320           comment-trigger-value: 'csit-vpp-ref-verify'
321           name: '{project}'
322           branch: '{branch}'
323
324     builders:
325       - shell:
326           !include-raw-escape:
327           - ../scripts/setup_executor_env.sh
328       - shell:
329           !include-raw-escape:
330           - ../scripts/csit/device-verify.sh
331
332     publishers:
333       - robot:
334           output-path: 'archives'
335           other-files:
336             - '*.*'
337       - fdio-infra-shiplogs:
338           maven-version: 'mvn33-new'