Merge "CSIT: Decommission 3n-hsw - 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_lts':
68           branch: 'rls2009_lts'
69           branch-id: 'oper-rls2009_lts'
70       - '2101':
71           branch: 'rls2101'
72           branch-id: 'oper-rls2101'
73       - '2106':
74           branch: 'rls2106'
75           branch-id: 'oper-rls2106'
76
77 - job-template:
78     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
79
80     project-type: freestyle
81     node: 'csit-builder-{os}-prod-{executor-arch}'
82     concurrent: true
83     archive-artifacts: 'archive/*.*'
84     latest-only: false
85
86     build-discarder:
87       daysToKeep: '{build-days-to-keep}'
88       numToKeep: '{build-num-to-keep}'
89       artifactDaysToKeep: '{build-artifact-days-to-keep}'
90       artifactNumToKeep: '{build-artifact-num-to-keep}'
91
92     parameters:
93       - project-parameter:
94           project: '{project}'
95       - gerrit-parameter:
96           branch: '{branch}'
97       - make-parallel-jobs-parameter:
98           make-parallel-jobs: '{make-parallel-jobs}'
99       - os-parameter:
100           os: '{os}'
101       - gerrit-refspec-parameter
102       - gerrit-event-type-parameter
103       - gerrit-event-comment-text-parameter
104       - string:
105           name: ARCHIVE_ARTIFACTS
106           default: '{archive-artifacts}'
107           description: Artifacts to archive to the logs server.
108       # This is an automatic verify job, part of API coverage.
109       # CRC checking is needed to ensure vpp crc job breaks only when intended.
110       # Unlikely to be removed, as this job is primary source of API coverage.
111       - csit-fail-on-crc-mismatch-parameter:
112           fail-on-crc-mismatch: 'True'
113
114     scm:
115       - gerrit-trigger-scm:
116           credentials-id: 'jenkins-gerrit-credentials'
117           refspec: '$GERRIT_REFSPEC'
118           choosing-strategy: 'gerrit'
119
120     wrappers:
121       - fdio-infra-wrappers:
122           build-timeout: '{build-timeout}'
123
124     triggers:
125       - gerrit-trigger-csit-vpp-devicetest-full:
126           project: '{project}'
127           branch: '{branch}'
128           skip-vote: '{skip-vote}'
129
130     builders:
131       - shell:
132           !include-raw-escape:
133           - ../scripts/setup_executor_env.sh
134       - shell:
135           !include-raw-escape:
136           - ../scripts/csit/device-verify.sh
137
138     publishers:
139       - robot:
140           output-path: 'archives'
141           other-files:
142             - '*.*'
143       - fdio-infra-publish
144
145 - job-template:
146     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
147
148     project-type: freestyle
149     node: 'csit-builder-{os}-prod-{executor-arch}'
150     concurrent: false
151     archive-artifacts: 'csit/archive/*.*'
152     latest-only: false
153
154     build-discarder:
155       daysToKeep: '{build-days-to-keep}'
156       numToKeep: '{build-num-to-keep}'
157       artifactDaysToKeep: '{build-artifact-days-to-keep}'
158       artifactNumToKeep: '{build-artifact-num-to-keep}'
159
160     parameters:
161       - project-parameter:
162           project: '{project}'
163       - gerrit-parameter:
164           branch: '{branch}'
165       - make-parallel-jobs-parameter:
166           make-parallel-jobs: '{make-parallel-jobs}'
167       - os-parameter:
168           os: '{os}'
169       - string:
170           name: ARCHIVE_ARTIFACTS
171           default: '{archive-artifacts}'
172           description: Artifacts to archive to the logs server.
173
174     wrappers:
175       - fdio-infra-wrappers-non-activity-timeout:
176           build-timeout: '{build-timeout}'
177
178     triggers:
179       - timed: '0 4 * * 2,6'
180
181       - gerrit-trigger-manually-triggered:
182           comment-trigger-value: 'csit-verify-vpp'
183           name: '{project}'
184           branch: '{branch}'
185
186     builders:
187       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
188       - inject:
189           properties-file: variables.prop
190       - shell:
191           !include-raw-escape:
192           - ../scripts/setup_executor_env.sh
193       - shell:
194           !include-raw-escape:
195           - ../scripts/csit/device-semiweekly.sh
196
197     publishers:
198       - robot:
199           output-path: 'archives'
200           other-files:
201             - '*.*'
202       - fdio-infra-publish
203
204 - job-template:
205     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
206
207     project-type: freestyle
208     node: 'csit-builder-{os}-prod-{executor-arch}'
209     concurrent: false
210     archive-artifacts: 'archive/*.*'
211     latest-only: false
212
213     build-discarder:
214       daysToKeep: '{build-days-to-keep}'
215       numToKeep: '{build-num-to-keep}'
216       artifactDaysToKeep: '{build-artifact-days-to-keep}'
217       artifactNumToKeep: '{build-artifact-num-to-keep}'
218
219     parameters:
220       - project-parameter:
221           project: '{project}'
222       - gerrit-parameter:
223           branch: '{branch}'
224       - make-parallel-jobs-parameter:
225           make-parallel-jobs: '{make-parallel-jobs}'
226       - os-parameter:
227           os: '{os}'
228       - string:
229           name: ARCHIVE_ARTIFACTS
230           default: '{archive-artifacts}'
231           description: Artifacts to archive to the logs server.
232
233     scm:
234       - git-scm:
235           credentials-id: 'jenkins-gerrit-credentials'
236           branch: '{branch}'
237
238     wrappers:
239       - fdio-infra-wrappers-non-activity-timeout:
240           build-timeout: '{build-timeout}'
241
242     triggers:
243       - timed: '0 4 * * 0'
244
245       - gerrit-trigger-manually-triggered:
246           comment-trigger-value: 'csit-vpp-ref-verify'
247           name: '{project}'
248           branch: '{branch}'
249
250     builders:
251       - shell:
252           !include-raw-escape:
253           - ../scripts/setup_executor_env.sh
254       - shell:
255           !include-raw-escape:
256           - ../scripts/csit/device-verify.sh
257
258     publishers:
259       - robot:
260           output-path: 'archives'
261           other-files:
262             - '*.*'
263       - fdio-infra-publish