Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 1 | --- |
| 2 | # |
| 3 | # ============LICENSE_START======================================================= |
| 4 | # Copyright (C) 2022 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 | # Description: |
| 22 | # ============ |
| 23 | # This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e basic integration tests. |
| 24 | # This job can be triggered manually or through a Github pull request. It creates a |
| 25 | # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository. |
| 26 | |
| 27 | - job-template: |
| 28 | id: capm3_e2e_basic_tests |
Mohammed Boukhalfa | 0f535b7 | 2024-02-28 20:07:06 +0200 | [diff] [blame^] | 29 | name: '{job_prefix}-{proj}-{capm3_target_branch}-e2e_basic-test-{image_os}' |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 30 | description: "CAPM3 {capm3_version} e2e basic integration tests for {org}/{repo} on {image_os}." |
| 31 | project-type: pipeline |
| 32 | defaults: global |
| 33 | disabled: False |
| 34 | concurrent: True |
| 35 | parameters: |
Mohammed Boukhalfa | 011b1a9 | 2024-02-19 08:40:35 +0200 | [diff] [blame] | 36 | # Parameters set by Prow |
| 37 | - string: |
| 38 | name: BUILD_ID |
| 39 | description: 'Used by Prow when triggering jobs' |
| 40 | - string: |
| 41 | name: PROW_JOB_ID |
| 42 | description: 'Used by Prow when triggering jobs' |
| 43 | - string: |
| 44 | name: REPO_OWNER |
| 45 | default: '{org}' |
| 46 | description: 'Project github repo org name' |
| 47 | - string: |
| 48 | name: REPO_NAME |
| 49 | default: '{repo}' |
| 50 | description: 'Project github repo name' |
| 51 | - string: |
| 52 | name: PULL_BASE_REF |
| 53 | default: 'main' |
| 54 | description: 'Ref name of the base branch' |
| 55 | - string: |
| 56 | name: PULL_PULL_SHA |
| 57 | default: 'main' |
| 58 | description: 'Pull request head SHA' |
| 59 | # End of Prow parameters |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 60 | - string: |
| 61 | name: PROJECT_REPO_ORG |
| 62 | default: '{org}' |
| 63 | description: 'Project github repo org name' |
| 64 | - string: |
| 65 | name: PROJECT_REPO_NAME |
| 66 | default: '{repo}' |
| 67 | description: 'Project github repo name' |
| 68 | - string: |
| 69 | name: ghprbActualCommit |
| 70 | default: 'main' |
| 71 | description: 'CI Repo branch for triggering manual build' |
| 72 | - string: |
| 73 | name: ghprbAuthorRepoGitUrl |
| 74 | default: 'https://github.com/{org}/{repo}.git' |
| 75 | description: 'CI Repo URL for triggering manual build' |
| 76 | - string: |
| 77 | name: ghprbTargetBranch |
| 78 | default: 'main' |
| 79 | description: 'Target branch of the PR' |
| 80 | - string: |
| 81 | name: IMAGE_OS |
| 82 | default: '{image_os}' |
| 83 | description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos' |
| 84 | - string: |
| 85 | name: capm3_release_branch |
| 86 | default: '{capm3_release_branch}' |
| 87 | description: 'The target branch of CAPM3 to be used for this test' |
| 88 | - string: |
Kashif Khan | 511cdd3 | 2023-10-04 17:04:13 +0300 | [diff] [blame] | 89 | name: bmo_release_branch |
| 90 | default: '{bmo_release_branch}' |
| 91 | description: 'The target branch of BMO to be used for this test' |
| 92 | - string: |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 93 | name: CAPI_VERSION |
| 94 | default: '{capi_version}' |
| 95 | description: 'Cluster API version. E.g. v1beta1.' |
| 96 | - string: |
| 97 | name: CAPM3_VERSION |
| 98 | default: '{capm3_version}' |
| 99 | description: 'Cluster API provider Metal3 version. E.g. v1beta1.' |
| 100 | - string: |
| 101 | name: TARGET_NODE_MEMORY |
| 102 | default: 4096 |
| 103 | description: 'RAM size of the target host.' |
| 104 | - string: |
| 105 | name: TESTS_FOR |
| 106 | default: "e2e_tests" |
| 107 | description: 'Tests using the e2e framework.' |
| 108 | - string: |
| 109 | name: GINKGO_FOCUS |
| 110 | default: "basic" |
| 111 | description: 'Select the e2e basic integration test' |
| 112 | |
| 113 | properties: |
| 114 | - build-discarder: |
| 115 | days-to-keep: 30 |
| 116 | num-to-keep: 300 |
| 117 | artifact-days-to-keep: -1 |
| 118 | artifact-num-to-keep: -1 |
| 119 | - github: |
| 120 | url: https://github.com/{org}/{repo} |
| 121 | |
| 122 | triggers: |
| 123 | - github-pull-request: |
| 124 | admin-list: |
| 125 | - '{ci_github_admin_user}' |
| 126 | org-list: "{ci_github_whitelist_org}" |
| 127 | cron: 'H/5 * * * *' |
| 128 | auth-id: "{ci_ghprb_auth_id}" |
| 129 | trigger-phrase: '((.|\n)*\s)?/test-{image_os}-e2e-basic-{capm3_target_branch}(\s(.|\n)*)?' |
| 130 | skip-build-phrase: '/skip-test' |
| 131 | only-trigger-phrase: True |
| 132 | github-hooks: True |
| 133 | permit-all: False |
| 134 | auto-close-on-fail: False |
| 135 | allow-whitelist-orgs-as-admins: True |
| 136 | white-list-target-branches: "{target_branches}" |
| 137 | status-context: "test-{image_os}-e2e-basic-{capm3_target_branch}" |
| 138 | success-status: "Passed" |
| 139 | failure-status: "Failed" |
| 140 | error-status: "Error" |
| 141 | cancel-builds-on-update: True |
| 142 | pipeline-scm: |
| 143 | scm: |
| 144 | - git: |
| 145 | url: "{ci_github_repo}" |
| 146 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 147 | branches: |
| 148 | - '{branch|main}' |
| 149 | name: 'origin' |
| 150 | refspec: '+refs/heads/*:refs/remotes/origin/*' |
| 151 | wipe-workspace: True |
| 152 | honor-refspec: True |
| 153 | shallow-clone: False |
Mohammed Boukhalfa | 0f535b7 | 2024-02-28 20:07:06 +0200 | [diff] [blame^] | 154 | script-path: "jenkins/jobs/prow_integration_tests.pipeline" |
Minna Färm | e761700 | 2023-07-24 12:24:01 +0300 | [diff] [blame] | 155 | lightweight-checkout: False |