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'
42 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly':
49 branch-id: 'oper-rls2009_lts'
52 branch-id: 'oper-rls2101'
63 branch-id: 'oper-rls2009'
66 branch-id: 'oper-rls2009_lts'
69 branch-id: 'oper-rls2101'
72 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
74 project-type: freestyle
75 node: 'csit-builder-{os}-prod-{executor-arch}'
77 archive-artifacts: 'archive/*.*'
81 daysToKeep: '{build-days-to-keep}'
82 numToKeep: '{build-num-to-keep}'
83 artifactDaysToKeep: '{build-artifact-days-to-keep}'
84 artifactNumToKeep: '{build-artifact-num-to-keep}'
91 - make-parallel-jobs-parameter:
92 make-parallel-jobs: '{make-parallel-jobs}'
95 - gerrit-refspec-parameter
96 - gerrit-event-type-parameter
97 - gerrit-event-comment-text-parameter
99 name: ARCHIVE_ARTIFACTS
100 default: '{archive-artifacts}'
101 description: Artifacts to archive to the logs server.
102 # This is an automatic verify job, part of API coverage.
103 # CRC checking is needed to ensure vpp crc job breaks only when intended.
104 # Unlikely to be removed, as this job is primary source of API coverage.
105 - csit-fail-on-crc-mismatch-parameter:
106 fail-on-crc-mismatch: 'True'
109 - gerrit-trigger-scm:
110 credentials-id: 'jenkins-gerrit-credentials'
111 refspec: '$GERRIT_REFSPEC'
112 choosing-strategy: 'gerrit'
115 - fdio-infra-wrappers:
116 build-timeout: '{build-timeout}'
119 - gerrit-trigger-csit-vpp-devicetest-full:
122 skip-vote: '{skip-vote}'
127 - ../scripts/setup_executor_env.sh
130 - ../scripts/csit/device-verify.sh
134 output-path: 'archives'
140 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
142 project-type: freestyle
143 node: 'csit-builder-{os}-prod-{executor-arch}'
145 archive-artifacts: 'csit/archive/*.*'
149 daysToKeep: '{build-days-to-keep}'
150 numToKeep: '{build-num-to-keep}'
151 artifactDaysToKeep: '{build-artifact-days-to-keep}'
152 artifactNumToKeep: '{build-artifact-num-to-keep}'
159 - make-parallel-jobs-parameter:
160 make-parallel-jobs: '{make-parallel-jobs}'
164 name: ARCHIVE_ARTIFACTS
165 default: '{archive-artifacts}'
166 description: Artifacts to archive to the logs server.
169 - fdio-infra-wrappers-non-activity-timeout:
170 build-timeout: '{build-timeout}'
173 - timed: '0 4 * * 2,6'
175 - gerrit-trigger-manually-triggered:
176 comment-trigger-value: 'csit-verify-vpp'
181 - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
183 properties-file: variables.prop
186 - ../scripts/setup_executor_env.sh
189 - ../scripts/csit/device-semiweekly.sh
193 output-path: 'archives'
199 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
201 project-type: freestyle
202 node: 'csit-builder-{os}-prod-{executor-arch}'
204 archive-artifacts: 'archive/*.*'
208 daysToKeep: '{build-days-to-keep}'
209 numToKeep: '{build-num-to-keep}'
210 artifactDaysToKeep: '{build-artifact-days-to-keep}'
211 artifactNumToKeep: '{build-artifact-num-to-keep}'
218 - make-parallel-jobs-parameter:
219 make-parallel-jobs: '{make-parallel-jobs}'
223 name: ARCHIVE_ARTIFACTS
224 default: '{archive-artifacts}'
225 description: Artifacts to archive to the logs server.
229 credentials-id: 'jenkins-gerrit-credentials'
233 - fdio-infra-wrappers-non-activity-timeout:
234 build-timeout: '{build-timeout}'
239 - gerrit-trigger-manually-triggered:
240 comment-trigger-value: 'csit-vpp-ref-verify'
247 - ../scripts/setup_executor_env.sh
250 - ../scripts/csit/device-verify.sh
254 output-path: 'archives'