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'
25 executor-arch: 'aarch64'
28 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
29 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly':
36 branch-id: 'oper-rls2009_lts'
39 branch-id: 'oper-rls2101'
40 - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly':
47 branch-id: 'oper-rls2009_lts'
50 branch-id: 'oper-rls2101'
61 branch-id: 'oper-rls2009'
64 branch-id: 'oper-rls2009_lts'
67 branch-id: 'oper-rls2101'
70 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
72 project-type: freestyle
73 node: 'csit-builder-{os}-prod-{executor-arch}'
75 archive-artifacts: 'archive/*.*'
79 daysToKeep: '{build-days-to-keep}'
80 numToKeep: '{build-num-to-keep}'
81 artifactDaysToKeep: '{build-artifact-days-to-keep}'
82 artifactNumToKeep: '{build-artifact-num-to-keep}'
91 - gerrit-refspec-parameter
92 - gerrit-event-type-parameter
93 - gerrit-event-comment-text-parameter
95 name: ARCHIVE_ARTIFACTS
96 default: '{archive-artifacts}'
97 description: Artifacts to archive to the logs server.
98 # This is an automatic verify job, part of API coverage.
99 # CRC checking is needed to ensure vpp crc job breaks only when intended.
100 # Unlikely to be removed, as this job is primary source of API coverage.
101 - csit-fail-on-crc-mismatch-parameter:
102 fail-on-crc-mismatch: 'True'
105 - gerrit-trigger-scm:
106 credentials-id: 'jenkins-gerrit-credentials'
107 refspec: '$GERRIT_REFSPEC'
108 choosing-strategy: 'gerrit'
111 - fdio-infra-wrappers:
112 build-timeout: '{build-timeout}'
115 - gerrit-trigger-csit-vpp-devicetest-full:
118 skip-vote: '{skip-vote}'
123 - ../scripts/setup_executor_env.sh
126 - ../scripts/csit/device-verify.sh
130 output-path: 'archives'
136 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
138 project-type: freestyle
139 node: 'csit-builder-{os}-prod-{executor-arch}'
141 archive-artifacts: 'csit/archive/*.*'
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}'
158 name: ARCHIVE_ARTIFACTS
159 default: '{archive-artifacts}'
160 description: Artifacts to archive to the logs server.
163 - fdio-infra-wrappers-non-activity-timeout:
164 build-timeout: '{build-timeout}'
167 - timed: '0 4 * * 2,6'
169 - gerrit-trigger-manually-triggered:
170 comment-trigger-value: 'csit-verify-vpp'
175 - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
177 properties-file: variables.prop
180 - ../scripts/setup_executor_env.sh
183 - ../scripts/csit/device-semiweekly.sh
187 output-path: 'archives'
193 name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
195 project-type: freestyle
196 node: 'csit-builder-{os}-prod-{executor-arch}'
198 archive-artifacts: 'archive/*.*'
202 daysToKeep: '{build-days-to-keep}'
203 numToKeep: '{build-num-to-keep}'
204 artifactDaysToKeep: '{build-artifact-days-to-keep}'
205 artifactNumToKeep: '{build-artifact-num-to-keep}'
215 name: ARCHIVE_ARTIFACTS
216 default: '{archive-artifacts}'
217 description: Artifacts to archive to the logs server.
221 credentials-id: 'jenkins-gerrit-credentials'
225 - fdio-infra-wrappers-non-activity-timeout:
226 build-timeout: '{build-timeout}'
231 - gerrit-trigger-manually-triggered:
232 comment-trigger-value: 'csit-vpp-ref-verify'
239 - ../scripts/setup_executor_env.sh
242 - ../scripts/csit/device-verify.sh
246 output-path: 'archives'