Modify CSIT archive artifacts
[ci-management.git] / jjb / csit / csit-vpp-device.yaml
1 ---
2 # Copyright (c) 2019 Cisco and/or its affiliates.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at:
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15
16 - project:
17     name: csit-vpp-device
18     description: 'CSIT jenkins jobs.'
19     os:
20       - 'ubuntu1804'
21     topo:
22       - '1n'
23     arch:
24       - 'skx'
25     jobs:
26       - 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
27       - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
28       - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
29     project: 'csit'
30     branch: 'master'
31     branch-id: 'oper'
32     stream_timed:
33       - master:
34           branch: 'master'
35           branch-id: 'oper'
36       - '1904':
37           branch: 'rls1904'
38           branch-id: 'oper-rls1904'
39     stream:
40       - master:
41           branch: 'master'
42           branch-id: 'oper'
43       - '1810':
44           branch: 'rls1810'
45           branch-id: 'oper-rls1810'
46       - '1901':
47           branch: 'rls1901'
48           branch-id: 'oper-rls1901'
49       - '1904':
50           branch: 'rls1904'
51           branch-id: 'oper-rls1904'
52
53 - job-template:
54     name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
55     description: |
56       <ul>
57           <li>objective
58               <ul>
59                   <li>vpp-device verify - per csit gerrit patch
60               </ul>
61           <li>job
62               <ul>
63                   <li>name: <b>csit-vpp-device-{stream}-{os}-{topo}-{arch}</b>
64                   <li>trigger: keyword in comment to csit patch:
65                       <b>csit-devicetest tag_list</b>
66               </ul>
67           <li>test-cases selection
68               <ul>
69                   <li>test-cases selected using trigger keyword followed by tags
70                   <li>all test-cases are labelled with CSIT RF topic tags
71                       defined in <i>csit/docs/tag_documentation.rst</i>
72               </ul>
73           <li>default tags for vpp-device test type
74               <ul>
75                   <li>devicetest
76               </ul>
77           <li>results
78               <ul>
79                   <li>jjb verify: PASS/FAIL
80                   <li>present: no
81                   <li>analyse: no
82               </ul>
83       </ul>
84
85     project-type: freestyle
86     node: 'vpp-csit-device'
87     concurrent: true
88     archive-artifacts: 'archive/*.*'
89     latest-only: false
90
91     build-discarder:
92       daysToKeep: '{build-days-to-keep}'
93       numToKeep: '{build-num-to-keep}'
94       artifactDaysToKeep: '{build-artifact-days-to-keep}'
95       artifactNumToKeep: '{build-artifact-num-to-keep}'
96
97     parameters:
98       - project-parameter:
99           project: '{project}'
100       - gerrit-parameter:
101           branch: '{branch}'
102       - os-parameter:
103           os: '{os}'
104       - gerrit-refspec-parameter
105       - gerrit-event-type-parameter
106       - gerrit-event-comment-text-parameter
107       - string:
108           name: ARCHIVE_ARTIFACTS
109           default: '{archive-artifacts}'
110           description: Artifacts to archive to the logs server.
111
112     scm:
113       - gerrit-trigger-scm:
114           credentials-id: 'jenkins-gerrit-credentials'
115           refspec: '$GERRIT_REFSPEC'
116           choosing-strategy: 'gerrit'
117
118     wrappers:
119       - fdio-infra-wrappers:
120           build-timeout: '{build-timeout}'
121
122     triggers:
123       - gerrit:
124           server-name: 'Primary'
125           trigger-on:
126             - patchset-created-event:
127                 exclude-drafts: 'true'
128                 exclude-trivial-rebase: 'false'
129                 exclude-no-code-change: 'false'
130             - draft-published-event
131             - comment-added-contains-event:
132                 comment-contains-value: 'recheck'
133             - comment-added-contains-event:
134                 comment-contains-value: 'reverify'
135             - comment-added-contains-event:
136                 comment-contains-value: 'csit-devicetest'
137           projects:
138             - project-compare-type: 'ANT'
139               project-pattern: '{project}'
140               branches:
141                 - branch-compare-type: 'ANT'
142                   branch-pattern: '**/{branch}'
143
144     builders:
145       - shell:
146           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
147
148     publishers:
149       - robot:
150           output-path: archive
151           other-files:
152             - '*.*'
153       - fdio-infra-shiplogs:
154           maven-version: 'mvn33-new'
155
156 - job-template:
157     name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
158     description: |
159       <ul>
160           <li>objective
161               <ul>
162                   <li>Validate latest vpp build from corresponding branch stored
163                       in nexus against verified CSIT codebase of corresponding
164                       branch.
165               </ul>
166           <li>test-cases selection
167               <ul>
168                   <li>pre-selected test-cases
169                   <li>all test-cases are labelled with CSIT RF topic tags
170                       defined in <i>csit/docs/tag_documentation.rst</i>
171               </ul>
172           <li>default tags for vpp-device test type
173               <ul>
174                   <li>devicetest
175               </ul>
176           <li>results
177               <ul>
178                   <li>jjb verify: PASS/FAIL
179                   <li>present: no
180                   <li>analyse: no
181               </ul>
182       </ul>
183
184     project-type: freestyle
185     node: 'vpp-csit-device'
186     concurrent: false
187     archive-artifacts: 'csit/archive/*.*'
188     latest-only: false
189
190     build-discarder:
191       daysToKeep: '{build-days-to-keep}'
192       numToKeep: '{build-num-to-keep}'
193       artifactDaysToKeep: '{build-artifact-days-to-keep}'
194       artifactNumToKeep: '{build-artifact-num-to-keep}'
195
196     parameters:
197       - project-parameter:
198           project: '{project}'
199       - gerrit-parameter:
200           branch: '{branch}'
201       - os-parameter:
202           os: '{os}'
203       - string:
204           name: ARCHIVE_ARTIFACTS
205           default: '{archive-artifacts}'
206           description: Artifacts to archive to the logs server.
207
208     wrappers:
209       - fdio-infra-wrappers-non-activity-timeout:
210           build-timeout: '{build-timeout}'
211
212     triggers:
213       - timed: '0 4 * * 2,6'
214
215       - gerrit-trigger-manually-triggered:
216           comment-trigger-value: 'csit-verify-vpp'
217           name: '{project}'
218           branch: '{branch}'
219
220     builders:
221       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
222       - inject:
223           properties-file: variables.prop
224       - shell:
225           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
226
227     publishers:
228       - robot:
229           output-path: 'csit/archive'
230           other-files:
231             - '*.*'
232       - fdio-infra-shiplogs:
233           maven-version: 'mvn33-new'
234
235 - job-template:
236     name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
237     description: |
238       <ul>
239           <li>objective
240               <ul>
241                   <li>Validate CSIT code of corresponding branch against
242                       verified vpp build from corresponding branch.
243               </ul>
244           <li>test-cases selection
245               <ul>
246                   <li>pre-selected test-cases
247                   <li>all test-cases are labelled with CSIT RF topic tags
248                       defined in <i>csit/docs/tag_documentation.rst</i>
249               </ul>
250           <li>default tags for vpp-device test type
251               <ul>
252                   <li>devicetest
253               </ul>
254           <li>results
255               <ul>
256                   <li>jjb verify: PASS/FAIL
257                   <li>present: no
258                   <li>analyse: no
259               </ul>
260       </ul>
261
262     project-type: freestyle
263     node: 'vpp-csit-device'
264     concurrent: false
265     archive-artifacts: 'archive/*.*'
266     latest-only: false
267
268     build-discarder:
269       daysToKeep: '{build-days-to-keep}'
270       numToKeep: '{build-num-to-keep}'
271       artifactDaysToKeep: '{build-artifact-days-to-keep}'
272       artifactNumToKeep: '{build-artifact-num-to-keep}'
273
274     parameters:
275       - project-parameter:
276           project: '{project}'
277       - gerrit-parameter:
278           branch: '{branch}'
279       - os-parameter:
280           os: '{os}'
281       - string:
282           name: ARCHIVE_ARTIFACTS
283           default: '{archive-artifacts}'
284           description: Artifacts to archive to the logs server.
285
286     scm:
287       - git-scm:
288           credentials-id: 'jenkins-gerrit-credentials'
289           branch: '{branch}'
290
291     wrappers:
292       - fdio-infra-wrappers-non-activity-timeout:
293           build-timeout: '{build-timeout}'
294
295     triggers:
296       - timed: '0 4 * * 0'
297
298       - gerrit-trigger-manually-triggered:
299           comment-trigger-value: 'csit-vpp-ref-verify'
300           name: '{project}'
301           branch: '{branch}'
302
303     builders:
304       - shell:
305           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
306
307     publishers:
308       - robot:
309           output-path: archive
310           other-files:
311             - '*.*'
312       - fdio-infra-shiplogs:
313           maven-version: 'mvn33-new'