Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 1 | - project: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 2 | name: bmo |
Lennart Jern | ca14439 | 2024-01-19 13:47:57 +0200 | [diff] [blame] | 3 | # Default "type" of job is "pull", as in pull request, |
| 4 | # and the default GINKGO_FOCUS is empty (all tests required in BMO PRs) |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 5 | type: pull |
Huy Mai | 3fcaf6d | 2024-01-16 14:16:25 +0200 | [diff] [blame] | 6 | GINKGO_FOCUS: " " |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 7 | # Default BMO branch to trigger the test in is "main" |
| 8 | BRANCH_NAME: "main" |
Lennart Jern | ca14439 | 2024-01-19 13:47:57 +0200 | [diff] [blame] | 9 | # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below) |
| 10 | triggers: [] |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 11 | |
| 12 | jobs: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 13 | - "{job_prefix}-{name}-e2e-test-{type}" |
Huy Mai | 3fcaf6d | 2024-01-16 14:16:25 +0200 | [diff] [blame] | 14 | # This job runs the "optional" set, which currently includes only "upgrade" tests |
| 15 | - "{job_prefix}-{name}-e2e-test-{type}": |
| 16 | type: optional-pull |
| 17 | GINKGO_FOCUS: "upgrade" |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 18 | - "{job_prefix}-{name}-e2e-test-{type}": |
| 19 | type: periodic |
| 20 | triggers: |
| 21 | # Run at 02:45 (UTC) every day |
| 22 | - timed: "45 2 * * *" |
Huy Mai | 6412088 | 2024-02-01 14:32:00 +0200 | [diff] [blame] | 23 | - "{job_prefix}-{name}-e2e-test-{type}": |
| 24 | type: optional-periodic |
| 25 | GINKGO_FOCUS: "upgrade" |
| 26 | triggers: |
| 27 | # Run at 03:45 (UTC) every day |
| 28 | - timed: "45 3 * * *" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 29 | |
Huy Mai | ce66d22 | 2024-05-10 16:38:05 +0300 | [diff] [blame^] | 30 | # Pediodic jobs for release branches |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 31 | - "{job_prefix}-{name}-e2e-test-{type}": |
| 32 | type: periodic-release-0.6 |
| 33 | BRANCH_NAME: "release-0.6" |
| 34 | triggers: |
Huy Mai | ce66d22 | 2024-05-10 16:38:05 +0300 | [diff] [blame^] | 35 | # Run at 01:45 (UTC) every odd day |
| 36 | - timed: "45 1 1-31/2 * *" |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 37 | - "{job_prefix}-{name}-e2e-test-{type}": |
Huy Mai | ce66d22 | 2024-05-10 16:38:05 +0300 | [diff] [blame^] | 38 | type: periodic-release-0.5 |
| 39 | BRANCH_NAME: "release-0.5" |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 40 | triggers: |
Huy Mai | ce66d22 | 2024-05-10 16:38:05 +0300 | [diff] [blame^] | 41 | # Run at 01:45 (UTC) every even day |
| 42 | - timed: "45 1 2-30/2 * *" |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 43 | |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 44 | - job-template: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 45 | name: "{job_prefix}-{name}-e2e-test-{type}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 46 | project-type: pipeline |
| 47 | defaults: global |
| 48 | disabled: False |
| 49 | concurrent: True |
| 50 | |
Lennart Jern | 29a1b03 | 2024-01-15 15:34:59 +0200 | [diff] [blame] | 51 | parameters: |
| 52 | # Parameters set by Prow |
| 53 | - string: |
| 54 | name: BUILD_ID |
| 55 | description: 'Used by Prow when triggering jobs' |
| 56 | - string: |
| 57 | name: PROW_JOB_ID |
| 58 | description: 'Used by Prow when triggering jobs' |
| 59 | - string: |
| 60 | name: REPO_OWNER |
| 61 | description: 'Project github repo org name' |
| 62 | - string: |
| 63 | name: REPO_NAME |
| 64 | description: 'Project github repo name' |
| 65 | - string: |
| 66 | name: PULL_BASE_REF |
Huy Mai | c2a61cb | 2024-04-23 10:17:28 +0300 | [diff] [blame] | 67 | default: '{BRANCH_NAME}' |
Lennart Jern | 29a1b03 | 2024-01-15 15:34:59 +0200 | [diff] [blame] | 68 | description: 'Ref name of the base branch' |
| 69 | - string: |
| 70 | name: PULL_PULL_SHA |
| 71 | description: 'Pull request head SHA' |
| 72 | # End of Prow parameters |
Huy Mai | 3fcaf6d | 2024-01-16 14:16:25 +0200 | [diff] [blame] | 73 | - string: |
| 74 | name: GINKGO_FOCUS |
| 75 | default: '{GINKGO_FOCUS}' |
| 76 | description: 'The focus test to run' |
Lennart Jern | 29a1b03 | 2024-01-15 15:34:59 +0200 | [diff] [blame] | 77 | |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 78 | properties: |
| 79 | - build-discarder: |
| 80 | days-to-keep: 30 |
| 81 | num-to-keep: 300 |
| 82 | artifact-days-to-keep: -1 |
| 83 | artifact-num-to-keep: -1 |
| 84 | - github: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 85 | url: https://github.com/metal3-io/baremetal-operator |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 86 | |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 87 | triggers: "{triggers}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 88 | |
| 89 | pipeline-scm: |
| 90 | scm: |
| 91 | - git: |
| 92 | url: "{ci_github_repo}" |
| 93 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 94 | branches: |
| 95 | - "{branch|main}" |
| 96 | name: 'origin' |
| 97 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 98 | wipe-workspace: True |
| 99 | honor-refspec: True |
| 100 | shallow-clone: False |
| 101 | script-path: "jenkins/jobs/bmo_e2e_tests.pipeline" |
| 102 | lightweight-checkout: False |