2b2a76986bae92ab7d31828bee91bc5becd5e0f2
[infra/cicd.git] / jjb / metal3 / projects.yml
1 ---
2 #
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21
22 # Description:
23 # ============
24 # This file contains the list of JJB projects in metal3 category. Each project
25 # corresponds to a github repository. Under each project's 'jobs' list defines the
26 # jobs associated with that github repository. The job definitions can be found
27 # in job_{job_id}.yml files in any of JJB include folders.
28
29 - project:
30     name: 'nordix_dev_tools'
31     branch: '${{ghprbActualCommit}}'
32     ci_github_whitelist_org:
33     - nordix-metal3
34     jobs:
35     - linter_tests
36     - openstack_image_building
37     - docker_image_building
38     - update_nordix_repos
39     - openstack_node_image_building
40     - main_fullstack_building
41     - fullstack_building_test
42     - metal3_dev_tools_integration_test:
43         image_os:
44           - ubuntu
45           - centos
46     - artifact_cleanup
47     repo:
48       org: "Nordix"
49       name: "metal3-dev-tools"
50     ci_github_jenkins_credentials_id: 'nordix-metal3-ci-github-prod-token'
51     ci_ghprb_auth_id: 'e8a43847-46ff-42db-a5db-7366df0e4ee2'
52     ci_github_repo: 'https://github.com/Nordix/metal3-dev-tools.git'
53
54 - project:
55     name: integration-tests
56     org: metal3-io
57     proj:
58       - metal3_dev_env:
59           repo: metal3-dev-env
60       - project_infra:
61           repo: project-infra
62           branch: '${{ghprbActualCommit}}'
63           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
64       - capm3:
65           repo: cluster-api-provider-metal3
66       - bmo:
67           repo: baremetal-operator
68       - ipam:
69           repo: ip-address-manager
70       - ironic_image:
71           repo: ironic-image
72           name_postfix: '_ironic_from_source'
73           trigger_postfix: '-ironic-source'
74           ironic_install_type: 'source'
75       - ironic_image:
76           repo: ironic-image
77       - ironic_ipa_downloader:
78           repo: ironic-ipa-downloader
79       - mariadb_image:
80           repo: mariadb-image
81           build_mariadb_image_locally: 'true'
82           ironic_use_mariadb: 'true'
83     image_os:
84       - ubuntu
85       - centos
86     capm3_target_branch:
87       - main:
88           capi_version: v1beta1
89           capm3_version: v1beta1
90           capm3_release_branch: main
91           target_branches:
92             - 'main'
93       - release-1-4:
94           capi_version: v1beta1
95           capm3_version: v1beta1
96           capm3_release_branch: release-1.4
97           target_branches:
98             - 'main'
99             - 'release-1.4'
100       - release-1-3:
101           capi_version: v1beta1
102           capm3_version: v1beta1
103           capm3_release_branch: release-1.3
104           target_branches:
105             - 'main'
106             - 'release-1.3'
107       - release-1-2:
108           capi_version: v1beta1
109           capm3_version: v1beta1
110           capm3_release_branch: release-1.2
111           target_branches:
112             - 'main'
113             - 'release-1.2'
114     jobs:
115       - integration_tests
116
117 - project:
118     name: keep-integration-tests-alive
119     org: metal3-io
120     proj:
121       - metal3_dev_env:
122           repo: metal3-dev-env
123       - project_infra:
124           repo: project-infra
125           branch: '${{ghprbActualCommit}}'
126           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
127       - capm3:
128           repo: cluster-api-provider-metal3
129       - bmo:
130           repo: baremetal-operator
131       - ipam:
132           repo: ip-address-manager
133       - ironic_image:
134           repo: ironic-image
135     image_os:
136       - ubuntu
137       - centos
138     capm3_target_branch:
139       - main:
140           capi_version: v1beta1
141           capm3_version: v1beta1
142           capm3_release_branch: main
143           target_branches:
144             - 'main'
145       - release-1-4:
146           capi_version: v1beta1
147           capm3_version: v1beta1
148           capm3_release_branch: release-1.4
149           target_branches:
150             - 'main'
151             - 'release-1.4'
152       - release-1-3:
153           capi_version: v1beta1
154           capm3_version: v1beta1
155           capm3_release_branch: release-1.3
156           target_branches:
157             - 'main'
158             - 'release-1.3'
159       - release-1-2:
160           capi_version: v1beta1
161           capm3_version: v1beta1
162           capm3_release_branch: release-1.2
163           target_branches:
164             - 'main'
165             - 'release-1.2'
166     jobs:
167       - keep_integration_tests
168
169 - project:
170     name: feature-tests
171     org: metal3-io
172     proj:
173       - metal3_dev_env:
174           repo: metal3-dev-env
175       - project_infra:
176           repo: project-infra
177           branch: '${{ghprbActualCommit}}'
178           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
179       - bmo:
180           repo: baremetal-operator
181     image_os:
182       - ubuntu
183       - centos
184     exclude:
185       - proj: bmo
186         image_os: centos
187     jobs:
188       - feature_tests
189
190 - project:
191     name: metal3-dev-env-main-tests
192     org: metal3-io
193     repo: metal3-dev-env
194     image_os:
195       - ubuntu
196       - centos
197     jobs:
198       - main_feature_tests
199       - capm3_main_integration_tests:
200           capm3_target_branch:
201             - main:
202                 capi_version: v1beta1
203                 capm3_version: v1beta1
204                 capm3_release_branch: main
205                 schedule: "H 4 * * *"
206             - release-1-4:
207                 capi_version: v1beta1
208                 capm3_version: v1beta1
209                 capm3_release_branch: release-1.4
210                 schedule: "30 4 * * *"
211             - release-1-3:
212                 capi_version: v1beta1
213                 capm3_version: v1beta1
214                 capm3_release_branch: release-1.3
215                 schedule: "30 4 * * *"
216             - release-1-2:
217                 capi_version: v1beta1
218                 capm3_version: v1beta1
219                 capm3_release_branch: release-1.2
220                 schedule: "30 4 * * *"
221
222 - project:
223     name: bml-tests
224     org: metal3-io
225     image_os: centos
226     jobs:
227       - bml_integration_tests:
228           proj:
229             - metal3_dev_env:
230                 repo: metal3-dev-env
231             - project_infra:
232                 repo: project-infra
233                 branch: '${{ghprbActualCommit}}'
234                 ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
235       - bml_main_integration_tests:
236           repo: metal3-dev-env
237
238 - project:
239     name: 'project_infra_cleanup'
240     repo:
241       org: "metal3-io"
242       name: "project-infra"
243     ci_github_pipeline: 'jenkins/jobs/integration_tests_clean.pipeline'
244     jobs:
245     - main_clean
246
247 - project:
248     name: "capm3"
249     org: metal3-io
250     proj:
251       - capm3:
252           repo: cluster-api-provider-metal3
253       - metal3_dev_env:
254           repo: metal3-dev-env
255       - project_infra:
256           repo: project-infra
257           branch: '${{ghprbActualCommit}}'
258           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
259       - bmo:
260           repo: baremetal-operator
261       - ipam:
262           repo: ip-address-manager
263     image_os:
264       - ubuntu
265       - centos
266     capm3_target_branch:
267       - main:
268           capi_version: v1beta1
269           capm3_version: v1beta1
270           capm3_release_branch: main
271           target_branches:
272             - 'main'
273       - release-1-4:
274           capi_version: v1beta1
275           capm3_version: v1beta1
276           capm3_release_branch: release-1.4
277           target_branches:
278             - 'release-1.4'
279       - release-1-3:
280           capi_version: v1beta1
281           capm3_version: v1beta1
282           capm3_release_branch: release-1.3
283           target_branches:
284             - 'release-1.3'
285       - release-1-2:
286           capi_version: v1beta1
287           capm3_version: v1beta1
288           capm3_release_branch: release-1.2
289           target_branches:
290             - 'release-1.2'
291     jobs:
292       - capm3_e2e_clusterctl_upgrade_tests:
293           upgrade_from_release:
294             - from-release-1-4:
295                 upgrade_from: v1.4.
296             - from-release-1-3:
297                 upgrade_from: v1.3.
298             - from-release-1-2:
299                 upgrade_from: v1.2.
300             - from-release-0-5:
301                 upgrade_from: v0.5.
302           exclude:
303             - image_os: centos
304       - capm3_e2e_k8s_upgrade_tests:
305           k8s_versions:
306             - 1-26-1-27:
307                 k8s_version_upgrade_from: v1.26.4
308                 k8s_version_upgrade_to: v1.27.1
309           exclude:
310               - image_os: centos
311       - capm3_e2e_integration_tests:
312           capm3_target_branch:
313             - main:
314                 capi_version: v1beta1
315                 capm3_version: v1beta1
316                 capm3_release_branch: main
317                 target_branches:
318                   - 'main'
319             - release-1-4:
320                 capi_version: v1beta1
321                 capm3_version: v1beta1
322                 capm3_release_branch: release-1.4
323                 target_branches:
324                   - 'main'
325                   - 'release-1.4'
326       - parallel_capm3_e2e_feature_tests:
327       - capm3_e2e_feature_tests:
328       - keep_capm3_e2e_integration_tests:
329           capm3_target_branch:
330             - main:
331                 capi_version: v1beta1
332                 capm3_version: v1beta1
333                 capm3_release_branch: main
334                 target_branches:
335                   - 'main'
336             - release-1-4:
337                 capi_version: v1beta1
338                 capm3_version: v1beta1
339                 capm3_release_branch: release-1.4
340                 target_branches:
341                   - 'main'
342                   - 'release-1.4'
343       - keep_capm3_e2e_feature_tests:
344       - keep_capm3_e2e_clusterctl_upgrade_tests:
345           upgrade_from_release:
346             - from-release-1-4:
347                 upgrade_from: v1.4.
348             - from-release-1-3:
349                 upgrade_from: v1.3.
350             - from-release-1-2:
351                 upgrade_from: v1.2.
352             - from-release-0-5:
353                 upgrade_from: v0.5.
354           exclude:
355             - image_os: centos
356       - keep_capm3_e2e_k8s_upgrade_tests:
357           k8s_versions:
358             - 1-26-1-27:
359                 k8s_version_upgrade_from: v1.26.4
360                 k8s_version_upgrade_to: v1.27.1
361           exclude:
362             - image_os: centos
363
364 - project:
365     name: "capm3-main-tests"
366     repo:
367       org: "metal3-io"
368       name: "cluster-api-provider-metal3"
369     image_os:
370       - ubuntu
371       - centos
372     jobs:
373       - capm3_main_e2e_clusterctl_upgrade_tests:
374           upgrade_from_release:
375             - from-release-1-4:
376                 upgrade_from: v1.4.
377             - from-release-1-3:
378                 upgrade_from: v1.3.
379             - from-release-1-2:
380                 upgrade_from: v1.2.
381             - from-release-0-5:
382                 upgrade_from: v0.5.
383           exclude:
384             - image_os: centos
385       - capm3_main_e2e_k8s_upgrade_tests:
386           k8s_versions:
387             - 1-26-1-27:
388                 k8s_version_upgrade_from: v1.26.4
389                 k8s_version_upgrade_to: v1.27.1
390           exclude:
391               - image_os: centos
392       - capm3_main_e2e_ephemeral_tests:
393           exclude:
394             - image_os: ubuntu
395       - capm3_main_e2e_integration_tests:
396           capm3_target_branch:
397             - main:
398                 capi_version: v1beta1
399                 capm3_version: v1beta1
400                 capm3_release_branch: main
401                 schedule: "H 4 * * *"
402             - release-1-4:
403                 capi_version: v1beta1
404                 capm3_version: v1beta1
405                 capm3_release_branch: release-1.4
406                 schedule: "30 4 * * *"
407       - capm3_main_e2e_feature_tests:
408           capm3_target_branch:
409             - main:
410                 capi_version: v1beta1
411                 capm3_version: v1beta1
412                 capm3_branch: main
413                 capm3_release_branch: main
414                 schedule: "H 2 * * *"
415             - release-1-4:
416                 capi_version: v1beta1
417                 capm3_version: v1beta1
418                 capm3_branch: release-1.4
419                 capm3_release_branch: release-1.4
420                 schedule: "H 5 * * *"
421             - release-1-3:
422                 capi_version: v1beta1
423                 capm3_version: v1beta1
424                 capm3_branch: release-1.3
425                 capm3_release_branch: release-1.3
426                 schedule: "H 8 * * *"
427             - release-1-2:
428                 capi_version: v1beta1
429                 capm3_version: v1beta1
430                 capm3_branch: release-1.2
431                 capm3_release_branch: release-1.2
432                 schedule: "H 11 * * *"
433
434 - project:
435     name: 'ironic_image_build_tests'
436     org: metal3-io
437     proj:
438       - project_infra:
439           repo: project-infra
440           branch: '${{ghprbActualCommit}}'
441           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
442       - ironic_image:
443           repo: ironic-image
444     jobs:
445       - ironic_image_build_tests