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