Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2022 Nordix Foundation. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | # Description: |
| 21 | # ============ |
| 22 | # This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e basic integration tests. |
| 23 | # This job can be triggered manually or through a Github pull request. It creates a |
| 24 | # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository. |
| 25 | |
| 26 | - job-template: |
| 27 | id: capm3_e2e_basic_tests |
Mohammed Boukhalfa | c205195 | 2024-03-05 13:52:43 +0200 | [diff] [blame] | 28 | name: '{job_prefix}-{image_os}-e2e-basic-test-{capm3_target_branch}' |
| 29 | description: "CAPM3 {capm3_version} e2e basic integration tests on {image_os}." |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 30 | project-type: pipeline |
| 31 | defaults: global |
| 32 | disabled: False |
| 33 | concurrent: True |
| 34 | parameters: |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 35 | # Parameters set by Prow |
| 36 | - string: |
| 37 | name: BUILD_ID |
| 38 | description: 'Used by Prow when triggering jobs' |
| 39 | - string: |
| 40 | name: PROW_JOB_ID |
| 41 | description: 'Used by Prow when triggering jobs' |
| 42 | - string: |
| 43 | name: REPO_OWNER |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 44 | description: 'Project github repo org name' |
| 45 | - string: |
| 46 | name: REPO_NAME |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 47 | description: 'Project github repo name' |
| 48 | - string: |
| 49 | name: PULL_BASE_REF |
Sunnatillo | cad20a4 | 2024-04-05 13:43:08 +0300 | [diff] [blame] | 50 | default: '{capm3_release_branch}' |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 51 | description: 'Ref name of the base branch' |
| 52 | - string: |
| 53 | name: PULL_PULL_SHA |
Sunnatillo | cad20a4 | 2024-04-05 13:43:08 +0300 | [diff] [blame] | 54 | default: '{capm3_release_branch}' |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 55 | description: 'Pull request head SHA' |
Mohammed Boukhalfa | b33e4d0 | 2024-03-05 11:04:17 +0200 | [diff] [blame] | 56 | - string: |
| 57 | name: PULL_NUMBER |
| 58 | description: 'Pull request number' |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 59 | # End of Prow parameters |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 60 | - string: |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 61 | name: IMAGE_OS |
| 62 | default: '{image_os}' |
| 63 | description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos' |
| 64 | - string: |
| 65 | name: capm3_release_branch |
| 66 | default: '{capm3_release_branch}' |
| 67 | description: 'The target branch of CAPM3 to be used for this test' |
| 68 | - string: |
Kashif Khan | 511cdd3 | 2023-10-04 17:04:13 +0300 | [diff] [blame] | 69 | name: bmo_release_branch |
| 70 | default: '{bmo_release_branch}' |
| 71 | description: 'The target branch of BMO to be used for this test' |
| 72 | - string: |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 73 | name: CAPI_VERSION |
| 74 | default: '{capi_version}' |
| 75 | description: 'Cluster API version. E.g. v1beta1.' |
| 76 | - string: |
| 77 | name: CAPM3_VERSION |
| 78 | default: '{capm3_version}' |
| 79 | description: 'Cluster API provider Metal3 version. E.g. v1beta1.' |
| 80 | - string: |
| 81 | name: TARGET_NODE_MEMORY |
| 82 | default: 4096 |
| 83 | description: 'RAM size of the target host.' |
| 84 | - string: |
Sunnatillo | 2483b96 | 2024-05-03 13:28:44 +0300 | [diff] [blame] | 85 | name: NUM_NODES |
| 86 | default: 2 |
| 87 | description: 'Number of libvirt VMs.' |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 88 | - string: |
| 89 | name: GINKGO_FOCUS |
| 90 | default: "basic" |
| 91 | description: 'Select the e2e basic integration test' |
| 92 | |
| 93 | properties: |
| 94 | - build-discarder: |
| 95 | days-to-keep: 30 |
| 96 | num-to-keep: 300 |
| 97 | artifact-days-to-keep: -1 |
| 98 | artifact-num-to-keep: -1 |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 99 | |
Mohammed Boukhalfa | c205195 | 2024-03-05 13:52:43 +0200 | [diff] [blame] | 100 | triggers: [] |
| 101 | |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 102 | pipeline-scm: |
| 103 | scm: |
| 104 | - git: |
Mohammed Boukhalfa | 02279bc | 2024-03-08 18:19:33 +0200 | [diff] [blame] | 105 | url: "{ci_github_repo}" |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 106 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 107 | branches: |
Tuomo Tanskanen | 8b3b7c3 | 2024-08-30 08:32:45 +0300 | [diff] [blame] | 108 | - '{branch|main}' |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 109 | name: 'origin' |
| 110 | refspec: '+refs/heads/*:refs/remotes/origin/*' |
| 111 | wipe-workspace: True |
| 112 | honor-refspec: True |
| 113 | shallow-clone: False |
Sunnatillo | e8a78ce | 2024-05-02 11:41:51 +0300 | [diff] [blame] | 114 | script-path: "{e2e_tests_pipeline}" |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 115 | lightweight-checkout: False |
Mohammed Boukhalfa | c205195 | 2024-03-05 13:52:43 +0200 | [diff] [blame] | 116 | |
| 117 | - project: |
| 118 | name: "capm3-basic" |
| 119 | image_os: |
| 120 | - ubuntu |
| 121 | - centos |
| 122 | jobs: |
| 123 | - capm3_e2e_basic_tests: |
| 124 | capm3_target_branch: |
| 125 | - main: |
| 126 | capi_version: v1beta1 |
| 127 | capm3_version: v1beta1 |
| 128 | capm3_release_branch: main |
| 129 | bmo_release_branch: main |
| 130 | target_branches: |
| 131 | - 'main' |
Tuomo Tanskanen | 8b3b7c3 | 2024-08-30 08:32:45 +0300 | [diff] [blame] | 132 | - release-1-8: |
| 133 | capi_version: v1beta1 |
| 134 | capm3_version: v1beta1 |
| 135 | capm3_release_branch: release-1.8 |
| 136 | bmo_release_branch: release-0.8 |
| 137 | target_branches: |
| 138 | - 'main' |
| 139 | - 'release-1.8' |
| 140 | - 'release-0.8' |
Huy Mai | 9e2b369 | 2024-04-12 13:12:28 +0300 | [diff] [blame] | 141 | - release-1-7: |
| 142 | capi_version: v1beta1 |
| 143 | capm3_version: v1beta1 |
| 144 | capm3_release_branch: release-1.7 |
| 145 | bmo_release_branch: release-0.6 |
| 146 | target_branches: |
| 147 | - 'main' |
| 148 | - 'release-1.7' |
| 149 | - 'release-0.6' |
Mohammed Boukhalfa | c205195 | 2024-03-05 13:52:43 +0200 | [diff] [blame] | 150 | - release-1-6: |
| 151 | capi_version: v1beta1 |
| 152 | capm3_version: v1beta1 |
| 153 | capm3_release_branch: release-1.6 |
| 154 | bmo_release_branch: release-0.5 |
| 155 | target_branches: |
| 156 | - 'main' |
| 157 | - 'release-1.6' |
| 158 | - 'release-0.5' |