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