94f6682c81477f8e53894891e6dfefba02c7e515
[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_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_integration_tests:
305           capm3_target_branch:
306             - main:
307                 capi_version: v1beta1
308                 capm3_version: v1beta1
309                 capm3_release_branch: main
310                 target_branches:
311                   - 'main'
312             - release-1-4:
313                 capi_version: v1beta1
314                 capm3_version: v1beta1
315                 capm3_release_branch: release-1.4
316                 target_branches:
317                   - 'main'
318                   - 'release-1.4'
319       - parallel_capm3_e2e_feature_tests:
320       - capm3_e2e_feature_tests:
321       - keep_capm3_e2e_integration_tests:
322           capm3_target_branch:
323             - main:
324                 capi_version: v1beta1
325                 capm3_version: v1beta1
326                 capm3_release_branch: main
327                 target_branches:
328                   - 'main'
329             - release-1-4:
330                 capi_version: v1beta1
331                 capm3_version: v1beta1
332                 capm3_release_branch: release-1.4
333                 target_branches:
334                   - 'main'
335                   - 'release-1.4'
336       - keep_capm3_e2e_feature_tests:
337       - keep_capm3_e2e_upgrade_tests:
338           upgrade_from_release:
339             - from-release-1-4:
340                 upgrade_from: v1.4.
341             - from-release-1-3:
342                 upgrade_from: v1.3.
343             - from-release-1-2:
344                 upgrade_from: v1.2.
345             - from-release-0-5:
346                 upgrade_from: v0.5.
347           exclude:
348             - image_os: centos
349
350 - project:
351     name: "capm3-main-tests"
352     repo:
353       org: "metal3-io"
354       name: "cluster-api-provider-metal3"
355     image_os:
356       - ubuntu
357       - centos
358     jobs:
359       - capm3_main_e2e_upgrade_tests:
360           upgrade_from_release:
361             - from-release-1-4:
362                 upgrade_from: v1.4.
363             - from-release-1-3:
364                 upgrade_from: v1.3.
365             - from-release-1-2:
366                 upgrade_from: v1.2.
367             - from-release-0-5:
368                 upgrade_from: v0.5.
369           exclude:
370             - image_os: centos
371       - capm3_main_e2e_ephemeral_tests:
372           exclude:
373             - image_os: ubuntu
374       - capm3_main_e2e_integration_tests:
375           capm3_target_branch:
376             - main:
377                 capi_version: v1beta1
378                 capm3_version: v1beta1
379                 capm3_release_branch: main
380                 schedule: "H 4 * * *"
381             - release-1-4:
382                 capi_version: v1beta1
383                 capm3_version: v1beta1
384                 capm3_release_branch: release-1.4
385                 schedule: "30 4 * * *"
386       - capm3_main_e2e_feature_tests:
387           capm3_target_branch:
388             - main:
389                 capi_version: v1beta1
390                 capm3_version: v1beta1
391                 capm3_branch: main
392                 capm3_release_branch: main
393                 schedule: "H 2 * * *"
394             - release-1-4:
395                 capi_version: v1beta1
396                 capm3_version: v1beta1
397                 capm3_branch: release-1.4
398                 capm3_release_branch: release-1.4
399                 schedule: "H 5 * * *"
400             - release-1-3:
401                 capi_version: v1beta1
402                 capm3_version: v1beta1
403                 capm3_branch: release-1.3
404                 capm3_release_branch: release-1.3
405                 schedule: "H 8 * * *"
406             - release-1-2:
407                 capi_version: v1beta1
408                 capm3_version: v1beta1
409                 capm3_branch: release-1.2
410                 capm3_release_branch: release-1.2
411                 schedule: "H 11 * * *"
412
413 - project:
414     name: 'ironic_image_build_tests'
415     org: metal3-io
416     proj:
417       - project_infra:
418           repo: project-infra
419           branch: '${{ghprbActualCommit}}'
420           ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
421       - ironic_image:
422           repo: ironic-image
423     jobs:
424       - ironic_image_build_tests