Merge "Revert "Change prod & sandbox to public IPs for Ingress/Gerrit""
[ci-management.git] / jjb / csit / csit-vpp-device.yaml
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:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
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.
13
14 ---
15 - project:
16     name: csit-vpp-device
17     description: 'CSIT jenkins jobs.'
18     node-arch:
19       - '1n-skx':
20           os: 'ubuntu2004'
21           executor-arch: 'x86_64'
22           make-parallel-jobs: '32'
23           skip-vote: 'false'
24       - '1n-tx2':
25           os: 'ubuntu2004'
26           executor-arch: 'aarch64'
27           make-parallel-jobs: '32'
28           skip-vote: 'true'
29     jobs:
30       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
31       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly':
32           stream:
33             - master:
34                 branch: 'master'
35                 branch-id: 'oper'
36             - '2009_lts':
37                 branch: 'rls2009_lts'
38                 branch-id: 'oper-rls2009_lts'
39             - '2101':
40                 branch: 'rls2101'
41                 branch-id: 'oper-rls2101'
42             - '2106':
43                 branch: 'rls2106'
44                 branch-id: 'oper-rls2106'
45       - 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly':
46           stream:
47             - master:
48                 branch: 'master'
49                 branch-id: 'oper'
50             - '2009_lts':
51                 branch: 'rls2009_lts'
52                 branch-id: 'oper-rls2009_lts'
53             - '2101':
54                 branch: 'rls2101'
55                 branch-id: 'oper-rls2101'
56             - '2106':
57                 branch: 'rls2106'
58                 branch-id: 'oper-rls2106'
59
60     project: 'csit'
61     branch: 'master'
62     branch-id: 'oper'
63     stream:
64       - master:
65           branch: 'master'
66           branch-id: 'oper'
67       - '2009_lts':
68           branch: 'rls2009_lts'
69           branch-id: 'oper-rls2009_lts'
70       - '2101':
71           branch: 'rls2101'
72           branch-id: 'oper-rls2101'
73       - '2106':
74           branch: 'rls2106'
75           branch-id: 'oper-rls2106'
76
77 - job-template:
78     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}'
79
80     project-type: freestyle
81     node: 'csit-builder-{os}-prod-{executor-arch}'
82     concurrent: true
83     latest-only: false
84
85     properties:
86       - lf-infra-properties:
87           build-days-to-keep: "{build-days-to-keep}"
88
89     parameters:
90       - project-parameter:
91           project: '{project}'
92       - gerrit-parameter:
93           branch: '{branch}'
94       - make-parallel-jobs-parameter:
95           make-parallel-jobs: '{make-parallel-jobs}'
96       - os-parameter:
97           os: '{os}'
98       - gerrit-refspec-parameter
99       - gerrit-event-type-parameter
100       - gerrit-event-comment-text-parameter
101       # This is an automatic verify job, part of API coverage.
102       # CRC checking is needed to ensure vpp crc job breaks only when intended.
103       # Unlikely to be removed, as this job is primary source of API coverage.
104       - csit-fail-on-crc-mismatch-parameter:
105           fail-on-crc-mismatch: 'True'
106
107     scm:
108       - gerrit-trigger-scm:
109           credentials-id: 'jenkins-gerrit-credentials'
110           refspec: '$GERRIT_REFSPEC'
111           choosing-strategy: 'gerrit'
112
113     wrappers:
114       - fdio-infra-wrappers:
115           build-timeout: '{build-timeout}'
116
117     triggers:
118       - gerrit-trigger-csit-vpp-devicetest-full:
119           project: '{project}'
120           branch: '{branch}'
121           skip-vote: '{skip-vote}'
122
123     builders:
124       - shell:
125           !include-raw-escape:
126           - ../scripts/setup_executor_env.sh
127       - shell:
128           !include-raw-escape:
129           - ../scripts/csit/device-verify.sh
130
131     publishers:
132       - fdio-infra-publish
133
134 - job-template:
135     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-semiweekly'
136
137     project-type: freestyle
138     node: 'csit-builder-{os}-prod-{executor-arch}'
139     concurrent: false
140     latest-only: false
141
142     properties:
143       - lf-infra-properties:
144           build-days-to-keep: "{build-days-to-keep}"
145
146     parameters:
147       - project-parameter:
148           project: '{project}'
149       - gerrit-parameter:
150           branch: '{branch}'
151       - make-parallel-jobs-parameter:
152           make-parallel-jobs: '{make-parallel-jobs}'
153       - os-parameter:
154           os: '{os}'
155
156     wrappers:
157       - fdio-infra-wrappers-non-activity-timeout:
158           build-timeout: '{build-timeout}'
159
160     triggers:
161       - timed: '0 4 * * 2,6'
162
163       - gerrit-trigger-manually-triggered:
164           comment-trigger-value: 'csit-verify-vpp'
165           name: '{project}'
166           branch: '{branch}'
167
168     builders:
169       - shell: 'echo "BRANCH_ID={branch-id}" > $WORKSPACE/variables.prop'
170       - inject:
171           properties-file: variables.prop
172       - shell:
173           !include-raw-escape:
174           - ../scripts/setup_executor_env.sh
175       - shell:
176           !include-raw-escape:
177           - ../scripts/csit/device-semiweekly.sh
178
179     publishers:
180       - fdio-infra-publish
181
182 - job-template:
183     name: 'csit-vpp-device-{stream}-{os}-{executor-arch}-{node-arch}-weekly'
184
185     project-type: freestyle
186     node: 'csit-builder-{os}-prod-{executor-arch}'
187     concurrent: false
188     latest-only: false
189
190     properties:
191       - lf-infra-properties:
192           build-days-to-keep: "{build-days-to-keep}"
193
194     parameters:
195       - project-parameter:
196           project: '{project}'
197       - gerrit-parameter:
198           branch: '{branch}'
199       - make-parallel-jobs-parameter:
200           make-parallel-jobs: '{make-parallel-jobs}'
201       - os-parameter:
202           os: '{os}'
203
204     scm:
205       - git-scm:
206           credentials-id: 'jenkins-gerrit-credentials'
207           branch: '{branch}'
208
209     wrappers:
210       - fdio-infra-wrappers-non-activity-timeout:
211           build-timeout: '{build-timeout}'
212
213     triggers:
214       - timed: '0 4 * * 0'
215
216       - gerrit-trigger-manually-triggered:
217           comment-trigger-value: 'csit-vpp-ref-verify'
218           name: '{project}'
219           branch: '{branch}'
220
221     builders:
222       - shell:
223           !include-raw-escape:
224           - ../scripts/setup_executor_env.sh
225       - shell:
226           !include-raw-escape:
227           - ../scripts/csit/device-verify.sh
228
229     publishers:
230       - fdio-infra-publish