csit: Add CSIT rls2106 jobs
[ci-management.git] / jjb / csit / csit-vpp-device.yaml
1 # Copyright (c) 2021 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     node-arch:
19       - '1n-skx':
20           os: 'ubuntu2004'
21           executor-arch: 'x86_64'
22           make-parallel-jobs: '32'
23           skip-vote: 'false'
24       - '1n-tx2':
25           os: 'ubuntu2004'
26           executor-arch: 'aarch64'
27           make-parallel-jobs: '32'
28           skip-vote: 'true'
29     jobs:
30       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
31       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly':
32           stream:
33             - master:
34                 branch: 'master'
35                 branch-id: 'oper'
36             - '2009_lts':
37                 branch: 'rls2009_lts'
38                 branch-id: 'oper-rls2009_lts'
39             - '2101':
40                 branch: 'rls2101'
41                 branch-id: 'oper-rls2101'
42             - '2106':
43                 branch: 'rls2106'
44                 branch-id: 'oper-rls2106'
45       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly':
46           stream:
47             - master:
48                 branch: 'master'
49                 branch-id: 'oper'
50             - '2009_lts':
51                 branch: 'rls2009_lts'
52                 branch-id: 'oper-rls2009_lts'
53             - '2101':
54                 branch: 'rls2101'
55                 branch-id: 'oper-rls2101'
56             - '2106':
57                 branch: 'rls2106'
58                 branch-id: 'oper-rls2106'
59
60     project: 'csit'
61     branch: 'master'
62     branch-id: 'oper'
63     stream:
64       - master:
65           branch: 'master'
66           branch-id: 'oper'
67       - '2009':
68           branch: 'rls2009'
69           branch-id: 'oper-rls2009'
70       - '2009_lts':
71           branch: 'rls2009_lts'
72           branch-id: 'oper-rls2009_lts'
73       - '2101':
74           branch: 'rls2101'
75           branch-id: 'oper-rls2101'
76       - '2106':
77           branch: 'rls2106'
78           branch-id: 'oper-rls2106'
79
80 - job-template:
81     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
82
83     project-type: freestyle
84     node: 'csit-builder-{os}-prod-{executor-arch}'
85     concurrent: true
86     archive-artifacts: 'archive/*.*'
87     latest-only: false
88
89     build-discarder:
90       daysToKeep: '{build-days-to-keep}'
91       numToKeep: '{build-num-to-keep}'
92       artifactDaysToKeep: '{build-artifact-days-to-keep}'
93       artifactNumToKeep: '{build-artifact-num-to-keep}'
94
95     parameters:
96       - project-parameter:
97           project: '{project}'
98       - gerrit-parameter:
99           branch: '{branch}'
100       - make-parallel-jobs-parameter:
101           make-parallel-jobs: '{make-parallel-jobs}'
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       # This is an automatic verify job, part of API coverage.
112       # CRC checking is needed to ensure vpp crc job breaks only when intended.
113       # Unlikely to be removed, as this job is primary source of API coverage.
114       - csit-fail-on-crc-mismatch-parameter:
115           fail-on-crc-mismatch: 'True'
116
117     scm:
118       - gerrit-trigger-scm:
119           credentials-id: 'jenkins-gerrit-credentials'
120           refspec: '$GERRIT_REFSPEC'
121           choosing-strategy: 'gerrit'
122
123     wrappers:
124       - fdio-infra-wrappers:
125           build-timeout: '{build-timeout}'
126
127     triggers:
128       - gerrit-trigger-csit-vpp-devicetest-full:
129           project: '{project}'
130           branch: '{branch}'
131           skip-vote: '{skip-vote}'
132
133     builders:
134       - shell:
135           !include-raw-escape:
136           - ../scripts/setup_executor_env.sh
137       - shell:
138           !include-raw-escape:
139           - ../scripts/csit/device-verify.sh
140
141     publishers:
142       - robot:
143           output-path: 'archives'
144           other-files:
145             - '*.*'
146       - fdio-infra-publish
147
148 - job-template:
149     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
150
151     project-type: freestyle
152     node: 'csit-builder-{os}-prod-{executor-arch}'
153     concurrent: false
154     archive-artifacts: 'csit/archive/*.*'
155     latest-only: false
156
157     build-discarder:
158       daysToKeep: '{build-days-to-keep}'
159       numToKeep: '{build-num-to-keep}'
160       artifactDaysToKeep: '{build-artifact-days-to-keep}'
161       artifactNumToKeep: '{build-artifact-num-to-keep}'
162
163     parameters:
164       - project-parameter:
165           project: '{project}'
166       - gerrit-parameter:
167           branch: '{branch}'
168       - make-parallel-jobs-parameter:
169           make-parallel-jobs: '{make-parallel-jobs}'
170       - os-parameter:
171           os: '{os}'
172       - string:
173           name: ARCHIVE_ARTIFACTS
174           default: '{archive-artifacts}'
175           description: Artifacts to archive to the logs server.
176
177     wrappers:
178       - fdio-infra-wrappers-non-activity-timeout:
179           build-timeout: '{build-timeout}'
180
181     triggers:
182       - timed: '0 4 * * 2,6'
183
184       - gerrit-trigger-manually-triggered:
185           comment-trigger-value: 'csit-verify-vpp'
186           name: '{project}'
187           branch: '{branch}'
188
189     builders:
190       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
191       - inject:
192           properties-file: variables.prop
193       - shell:
194           !include-raw-escape:
195           - ../scripts/setup_executor_env.sh
196       - shell:
197           !include-raw-escape:
198           - ../scripts/csit/device-semiweekly.sh
199
200     publishers:
201       - robot:
202           output-path: 'archives'
203           other-files:
204             - '*.*'
205       - fdio-infra-publish
206
207 - job-template:
208     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
209
210     project-type: freestyle
211     node: 'csit-builder-{os}-prod-{executor-arch}'
212     concurrent: false
213     archive-artifacts: 'archive/*.*'
214     latest-only: false
215
216     build-discarder:
217       daysToKeep: '{build-days-to-keep}'
218       numToKeep: '{build-num-to-keep}'
219       artifactDaysToKeep: '{build-artifact-days-to-keep}'
220       artifactNumToKeep: '{build-artifact-num-to-keep}'
221
222     parameters:
223       - project-parameter:
224           project: '{project}'
225       - gerrit-parameter:
226           branch: '{branch}'
227       - make-parallel-jobs-parameter:
228           make-parallel-jobs: '{make-parallel-jobs}'
229       - os-parameter:
230           os: '{os}'
231       - string:
232           name: ARCHIVE_ARTIFACTS
233           default: '{archive-artifacts}'
234           description: Artifacts to archive to the logs server.
235
236     scm:
237       - git-scm:
238           credentials-id: 'jenkins-gerrit-credentials'
239           branch: '{branch}'
240
241     wrappers:
242       - fdio-infra-wrappers-non-activity-timeout:
243           build-timeout: '{build-timeout}'
244
245     triggers:
246       - timed: '0 4 * * 0'
247
248       - gerrit-trigger-manually-triggered:
249           comment-trigger-value: 'csit-vpp-ref-verify'
250           name: '{project}'
251           branch: '{branch}'
252
253     builders:
254       - shell:
255           !include-raw-escape:
256           - ../scripts/setup_executor_env.sh
257       - shell:
258           !include-raw-escape:
259           - ../scripts/csit/device-verify.sh
260
261     publishers:
262       - robot:
263           output-path: 'archives'
264           other-files:
265             - '*.*'
266       - fdio-infra-publish