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:
6 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 description: 'CSIT jenkins jobs.'
21 executor-arch: 'x86_64'
22 make-parallel-jobs: '32'
26 executor-arch: 'aarch64'
27 make-parallel-jobs: '32'
30 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
31 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly':
38 branch-id: 'oper-rls2009_lts'
41 branch-id: 'oper-rls2101'
44 branch-id: 'oper-rls2106'
45 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly':
52 branch-id: 'oper-rls2009_lts'
55 branch-id: 'oper-rls2101'
58 branch-id: 'oper-rls2106'
69 branch-id: 'oper-rls2009_lts'
72 branch-id: 'oper-rls2101'
75 branch-id: 'oper-rls2106'
78 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
80 project-type: freestyle
81 node: 'csit-builder-{os}-prod-{executor-arch}'
83 archive-artifacts: 'archive/*.*'
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}'
97 - make-parallel-jobs-parameter:
98 make-parallel-jobs: '{make-parallel-jobs}'
101 - gerrit-refspec-parameter
102 - gerrit-event-type-parameter
103 - gerrit-event-comment-text-parameter
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'
115 - gerrit-trigger-scm:
116 credentials-id: 'jenkins-gerrit-credentials'
117 refspec: '$GERRIT_REFSPEC'
118 choosing-strategy: 'gerrit'
121 - fdio-infra-wrappers:
122 build-timeout: '{build-timeout}'
125 - gerrit-trigger-csit-vpp-devicetest-full:
128 skip-vote: '{skip-vote}'
133 - ../scripts/setup_executor_env.sh
136 - ../scripts/csit/device-verify.sh
140 output-path: 'archives'
146 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
148 project-type: freestyle
149 node: 'csit-builder-{os}-prod-{executor-arch}'
151 archive-artifacts: 'csit/archive/*.*'
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}'
165 - make-parallel-jobs-parameter:
166 make-parallel-jobs: '{make-parallel-jobs}'
170 name: ARCHIVE_ARTIFACTS
171 default: '{archive-artifacts}'
172 description: Artifacts to archive to the logs server.
175 - fdio-infra-wrappers-non-activity-timeout:
176 build-timeout: '{build-timeout}'
179 - timed: '0 4 * * 2,6'
181 - gerrit-trigger-manually-triggered:
182 comment-trigger-value: 'csit-verify-vpp'
187 - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
189 properties-file: variables.prop
192 - ../scripts/setup_executor_env.sh
195 - ../scripts/csit/device-semiweekly.sh
199 output-path: 'archives'
205 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
207 project-type: freestyle
208 node: 'csit-builder-{os}-prod-{executor-arch}'
210 archive-artifacts: 'archive/*.*'
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}'
224 - make-parallel-jobs-parameter:
225 make-parallel-jobs: '{make-parallel-jobs}'
229 name: ARCHIVE_ARTIFACTS
230 default: '{archive-artifacts}'
231 description: Artifacts to archive to the logs server.
235 credentials-id: 'jenkins-gerrit-credentials'
239 - fdio-infra-wrappers-non-activity-timeout:
240 build-timeout: '{build-timeout}'
245 - gerrit-trigger-manually-triggered:
246 comment-trigger-value: 'csit-vpp-ref-verify'
253 - ../scripts/setup_executor_env.sh
256 - ../scripts/csit/device-verify.sh
260 output-path: 'archives'