Merge "FIX: Use correct robot output path in csit device semiweekly job"
[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     topo:
21       - '1n'
22     arch:
23       - 'skx'
24     jobs:
25       - 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
26       - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
27       - 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
28     project: 'csit'
29     branch: 'master'
30     branch-id: 'oper'
31     stream_timed:
32       - master:
33           branch: 'master'
34           branch-id: 'oper'
35     stream:
36       - master:
37           branch: 'master'
38           branch-id: 'oper'
39       - '1810':
40           branch: 'rls1810'
41           branch-id: 'oper-rls1810'
42
43 - job-template:
44     name: 'csit-vpp-device-{stream}-{os}-{topo}-{arch}'
45     description: |
46       <ul>
47           <li>objective
48               <ul>
49                   <li>vpp-device verify - per csit gerrit patch
50               </ul>
51           <li>job
52               <ul>
53                   <li>name: <b>csit-vpp-device-{stream}-{os}-{topo}-{arch}</b>
54                   <li>trigger: keyword in comment to csit patch:
55                       <b>csit-devicetest tag_list</b>
56               </ul>
57           <li>test-cases selection
58               <ul>
59                   <li>test-cases selected using trigger keyword followed by tags
60                   <li>all test-cases are labelled with CSIT RF topic tags
61                       defined in <i>csit/docs/tag_documentation.rst</i>
62               </ul>
63           <li>default tags for vpp-device test type
64               <ul>
65                   <li>devicetest
66               </ul>
67           <li>results
68               <ul>
69                   <li>jjb verify: PASS/FAIL
70                   <li>present: no
71                   <li>analyse: no
72               </ul>
73       </ul>
74
75     project-type: freestyle
76     node: 'vpp-csit-device'
77     concurrent: true
78
79     build-discarder:
80       daysToKeep: '{build-days-to-keep}'
81       numToKeep: '{build-num-to-keep}'
82       artifactDaysToKeep: '{build-artifact-days-to-keep}'
83       artifactNumToKeep: '{build-artifact-num-to-keep}'
84
85     parameters:
86       - project-parameter:
87           project: '{project}'
88       - gerrit-parameter:
89           branch: '{branch}'
90       - os-parameter:
91           os: '{os}'
92       - gerrit-refspec-parameter
93       - gerrit-event-type-parameter
94       - gerrit-event-comment-text-parameter
95
96     scm:
97       - gerrit-trigger-scm:
98           credentials-id: 'jenkins-gerrit-credentials'
99           refspec: '$GERRIT_REFSPEC'
100           choosing-strategy: 'gerrit'
101
102     wrappers:
103       - fdio-infra-wrappers:
104           build-timeout: '{build-timeout}'
105
106     triggers:
107       - gerrit:
108           server-name: 'Primary'
109           trigger-on:
110             - patchset-created-event:
111                 exclude-drafts: 'true'
112                 exclude-trivial-rebase: 'false'
113                 exclude-no-code-change: 'false'
114             - draft-published-event
115             - comment-added-contains-event:
116                 comment-contains-value: 'recheck'
117             - comment-added-contains-event:
118                 comment-contains-value: 'reverify'
119             - comment-added-contains-event:
120                 comment-contains-value: 'csit-devicetest'
121           projects:
122             - project-compare-type: 'ANT'
123               project-pattern: '{project}'
124               branches:
125                 - branch-compare-type: 'ANT'
126                   branch-pattern: '**/{branch}'
127
128     builders:
129       - shell:
130           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
131
132     publishers:
133       - archive-artifacts:
134           artifacts: 'archive/*.*'
135           latest-only: false
136       - robot:
137           output-path: archive
138           other-files:
139             - '*.*'
140       - fdio-infra-shiplogs:
141           maven-version: 'mvn33-new'
142
143 - job-template:
144     name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-semiweekly'
145     description: |
146       <ul>
147           <li>objective
148               <ul>
149                   <li>Validate latest vpp build from corresponding branch stored
150                       in nexus against verified CSIT codebase of corresponding
151                       branch.
152               </ul>
153           <li>test-cases selection
154               <ul>
155                   <li>pre-selected test-cases
156                   <li>all test-cases are labelled with CSIT RF topic tags
157                       defined in <i>csit/docs/tag_documentation.rst</i>
158               </ul>
159           <li>default tags for vpp-device test type
160               <ul>
161                   <li>devicetest
162               </ul>
163           <li>results
164               <ul>
165                   <li>jjb verify: PASS/FAIL
166                   <li>present: no
167                   <li>analyse: no
168               </ul>
169       </ul>
170
171     project-type: freestyle
172     node: 'vpp-csit-device'
173     concurrent: false
174
175     build-discarder:
176       daysToKeep: '{build-days-to-keep}'
177       numToKeep: '{build-num-to-keep}'
178       artifactDaysToKeep: '{build-artifact-days-to-keep}'
179       artifactNumToKeep: '{build-artifact-num-to-keep}'
180
181     parameters:
182       - project-parameter:
183           project: '{project}'
184       - gerrit-parameter:
185           branch: '{branch}'
186       - os-parameter:
187           os: '{os}'
188
189     wrappers:
190       - fdio-infra-wrappers-non-activity-timeout:
191           build-timeout: '{build-timeout}'
192
193     triggers:
194       - timed: '0 4 * * 2,6'
195
196       - gerrit-trigger-manually-triggered:
197           comment-trigger-value: 'csit-verify-vpp'
198           name: '{project}'
199           branch: '{branch}'
200
201     builders:
202       - shell:
203           !include-raw-escape: jjb/csit/include-raw-csit-device-semiweekly.sh
204
205     publishers:
206       - archive-artifacts:
207           artifacts: 'csit/archive/*.*'
208           latest-only: false
209       - robot:
210           output-path: 'csit/archive'
211           other-files:
212             - '*.*'
213       - fdio-infra-shiplogs:
214           maven-version: 'mvn33-new'
215
216 - job-template:
217     name: 'csit-vpp-device-{stream_timed}-{os}-{topo}-{arch}-weekly'
218     description: |
219       <ul>
220           <li>objective
221               <ul>
222                   <li>Validate CSIT code of corresponding branch against
223                       verified vpp build from corresponding branch.
224               </ul>
225           <li>test-cases selection
226               <ul>
227                   <li>pre-selected test-cases
228                   <li>all test-cases are labelled with CSIT RF topic tags
229                       defined in <i>csit/docs/tag_documentation.rst</i>
230               </ul>
231           <li>default tags for vpp-device test type
232               <ul>
233                   <li>devicetest
234               </ul>
235           <li>results
236               <ul>
237                   <li>jjb verify: PASS/FAIL
238                   <li>present: no
239                   <li>analyse: no
240               </ul>
241       </ul>
242
243     project-type: freestyle
244     node: 'vpp-csit-device'
245     concurrent: false
246
247     build-discarder:
248       daysToKeep: '{build-days-to-keep}'
249       numToKeep: '{build-num-to-keep}'
250       artifactDaysToKeep: '{build-artifact-days-to-keep}'
251       artifactNumToKeep: '{build-artifact-num-to-keep}'
252
253     parameters:
254       - project-parameter:
255           project: '{project}'
256       - gerrit-parameter:
257           branch: '{branch}'
258       - os-parameter:
259           os: '{os}'
260
261     scm:
262       - git-scm:
263           credentials-id: 'jenkins-gerrit-credentials'
264           branch: '{branch}'
265
266     wrappers:
267       - fdio-infra-wrappers-non-activity-timeout:
268           build-timeout: '{build-timeout}'
269
270     triggers:
271       - timed: '0 4 * * 0'
272
273       - gerrit-trigger-manually-triggered:
274           comment-trigger-value: 'csit-vpp-ref-verify'
275           name: '{project}'
276           branch: '{branch}'
277
278     builders:
279       - shell:
280           !include-raw-escape: jjb/csit/include-raw-csit-device-verify.sh
281
282     publishers:
283       - archive-artifacts:
284           artifacts: 'archive/*.*'
285           latest-only: false
286       - robot:
287           output-path: archive
288           other-files:
289             - '*.*'
290       - fdio-infra-shiplogs:
291           maven-version: 'mvn33-new'