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}'
86 daysToKeep: '{build-days-to-keep}'
87 numToKeep: '{build-num-to-keep}'
88 artifactDaysToKeep: '{build-artifact-days-to-keep}'
89 artifactNumToKeep: '{build-artifact-num-to-keep}'
96 - make-parallel-jobs-parameter:
97 make-parallel-jobs: '{make-parallel-jobs}'
100 - gerrit-refspec-parameter
101 - gerrit-event-type-parameter
102 - gerrit-event-comment-text-parameter
103 # This is an automatic verify job, part of API coverage.
104 # CRC checking is needed to ensure vpp crc job breaks only when intended.
105 # Unlikely to be removed, as this job is primary source of API coverage.
106 - csit-fail-on-crc-mismatch-parameter:
107 fail-on-crc-mismatch: 'True'
110 - gerrit-trigger-scm:
111 credentials-id: 'jenkins-gerrit-credentials'
112 refspec: '$GERRIT_REFSPEC'
113 choosing-strategy: 'gerrit'
116 - fdio-infra-wrappers:
117 build-timeout: '{build-timeout}'
120 - gerrit-trigger-csit-vpp-devicetest-full:
123 skip-vote: '{skip-vote}'
128 - ../scripts/setup_executor_env.sh
131 - ../scripts/csit/device-verify.sh
137 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
139 project-type: freestyle
140 node: 'csit-builder-{os}-prod-{executor-arch}'
145 daysToKeep: '{build-days-to-keep}'
146 numToKeep: '{build-num-to-keep}'
147 artifactDaysToKeep: '{build-artifact-days-to-keep}'
148 artifactNumToKeep: '{build-artifact-num-to-keep}'
155 - make-parallel-jobs-parameter:
156 make-parallel-jobs: '{make-parallel-jobs}'
161 - fdio-infra-wrappers-non-activity-timeout:
162 build-timeout: '{build-timeout}'
165 - timed: '0 4 * * 2,6'
167 - gerrit-trigger-manually-triggered:
168 comment-trigger-value: 'csit-verify-vpp'
173 - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
175 properties-file: variables.prop
178 - ../scripts/setup_executor_env.sh
181 - ../scripts/csit/device-semiweekly.sh
187 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
189 project-type: freestyle
190 node: 'csit-builder-{os}-prod-{executor-arch}'
195 daysToKeep: '{build-days-to-keep}'
196 numToKeep: '{build-num-to-keep}'
197 artifactDaysToKeep: '{build-artifact-days-to-keep}'
198 artifactNumToKeep: '{build-artifact-num-to-keep}'
205 - make-parallel-jobs-parameter:
206 make-parallel-jobs: '{make-parallel-jobs}'
212 credentials-id: 'jenkins-gerrit-credentials'
216 - fdio-infra-wrappers-non-activity-timeout:
217 build-timeout: '{build-timeout}'
222 - gerrit-trigger-manually-triggered:
223 comment-trigger-value: 'csit-vpp-ref-verify'
230 - ../scripts/setup_executor_env.sh
233 - ../scripts/csit/device-verify.sh