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'
72 branch-id: 'oper-rls2009_lts'
75 branch-id: 'oper-rls2101'
78 branch-id: 'oper-rls2106'
81 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
83 project-type: freestyle
84 node: 'csit-builder-{os}-prod-{executor-arch}'
86 archive-artifacts: 'archive/*.*'
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}'
100 - make-parallel-jobs-parameter:
101 make-parallel-jobs: '{make-parallel-jobs}'
104 - gerrit-refspec-parameter
105 - gerrit-event-type-parameter
106 - gerrit-event-comment-text-parameter
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'
118 - gerrit-trigger-scm:
119 credentials-id: 'jenkins-gerrit-credentials'
120 refspec: '$GERRIT_REFSPEC'
121 choosing-strategy: 'gerrit'
124 - fdio-infra-wrappers:
125 build-timeout: '{build-timeout}'
128 - gerrit-trigger-csit-vpp-devicetest-full:
131 skip-vote: '{skip-vote}'
136 - ../scripts/setup_executor_env.sh
139 - ../scripts/csit/device-verify.sh
143 output-path: 'archives'
149 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
151 project-type: freestyle
152 node: 'csit-builder-{os}-prod-{executor-arch}'
154 archive-artifacts: 'csit/archive/*.*'
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}'
168 - make-parallel-jobs-parameter:
169 make-parallel-jobs: '{make-parallel-jobs}'
173 name: ARCHIVE_ARTIFACTS
174 default: '{archive-artifacts}'
175 description: Artifacts to archive to the logs server.
178 - fdio-infra-wrappers-non-activity-timeout:
179 build-timeout: '{build-timeout}'
182 - timed: '0 4 * * 2,6'
184 - gerrit-trigger-manually-triggered:
185 comment-trigger-value: 'csit-verify-vpp'
190 - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
192 properties-file: variables.prop
195 - ../scripts/setup_executor_env.sh
198 - ../scripts/csit/device-semiweekly.sh
202 output-path: 'archives'
208 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
210 project-type: freestyle
211 node: 'csit-builder-{os}-prod-{executor-arch}'
213 archive-artifacts: 'archive/*.*'
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}'
227 - make-parallel-jobs-parameter:
228 make-parallel-jobs: '{make-parallel-jobs}'
232 name: ARCHIVE_ARTIFACTS
233 default: '{archive-artifacts}'
234 description: Artifacts to archive to the logs server.
238 credentials-id: 'jenkins-gerrit-credentials'
242 - fdio-infra-wrappers-non-activity-timeout:
243 build-timeout: '{build-timeout}'
248 - gerrit-trigger-manually-triggered:
249 comment-trigger-value: 'csit-vpp-ref-verify'
256 - ../scripts/setup_executor_env.sh
259 - ../scripts/csit/device-verify.sh
263 output-path: 'archives'