blob: 101cb76dfaf571471c2826ea076828db8a75fc59 [file] [log] [blame]
Lennart Jernc04111d2023-09-21 11:28:01 +03001- project:
Lennart Jerne985c152023-09-28 11:16:15 +03002 name: bmo
Lennart Jernca144392024-01-19 13:47:57 +02003 # 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 Jerne985c152023-09-28 11:16:15 +03005 type: pull
Huy Mai3fcaf6d2024-01-16 14:16:25 +02006 GINKGO_FOCUS: " "
Huy Maic2a61cb2024-04-23 10:17:28 +03007 # Default BMO branch to trigger the test in is "main"
8 BRANCH_NAME: "main"
Lennart Jernca144392024-01-19 13:47:57 +02009 # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below)
10 triggers: []
Lennart Jernc04111d2023-09-21 11:28:01 +030011
12 jobs:
Lennart Jerne985c152023-09-28 11:16:15 +030013 - "{job_prefix}-{name}-e2e-test-{type}"
Huy Mai3fcaf6d2024-01-16 14:16:25 +020014 # 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 Jerne985c152023-09-28 11:16:15 +030018 - "{job_prefix}-{name}-e2e-test-{type}":
19 type: periodic
20 triggers:
21 # Run at 02:45 (UTC) every day
22 - timed: "45 2 * * *"
Huy Mai64120882024-02-01 14:32:00 +020023 - "{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 Jernc04111d2023-09-21 11:28:01 +030029
Huy Maice66d222024-05-10 16:38:05 +030030 # Pediodic jobs for release branches
Huy Maic2a61cb2024-04-23 10:17:28 +030031 - "{job_prefix}-{name}-e2e-test-{type}":
32 type: periodic-release-0.6
33 BRANCH_NAME: "release-0.6"
34 triggers:
Huy Maice66d222024-05-10 16:38:05 +030035 # Run at 01:45 (UTC) every odd day
36 - timed: "45 1 1-31/2 * *"
Huy Maic2a61cb2024-04-23 10:17:28 +030037 - "{job_prefix}-{name}-e2e-test-{type}":
Huy Maice66d222024-05-10 16:38:05 +030038 type: periodic-release-0.5
39 BRANCH_NAME: "release-0.5"
Huy Maic2a61cb2024-04-23 10:17:28 +030040 triggers:
Huy Maice66d222024-05-10 16:38:05 +030041 # Run at 01:45 (UTC) every even day
42 - timed: "45 1 2-30/2 * *"
Huy Maic2a61cb2024-04-23 10:17:28 +030043
Lennart Jernc04111d2023-09-21 11:28:01 +030044- job-template:
Lennart Jerne985c152023-09-28 11:16:15 +030045 name: "{job_prefix}-{name}-e2e-test-{type}"
Lennart Jernc04111d2023-09-21 11:28:01 +030046 project-type: pipeline
47 defaults: global
48 disabled: False
49 concurrent: True
50
Lennart Jern29a1b032024-01-15 15:34:59 +020051 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 Maic2a61cb2024-04-23 10:17:28 +030067 default: '{BRANCH_NAME}'
Lennart Jern29a1b032024-01-15 15:34:59 +020068 description: 'Ref name of the base branch'
69 - string:
70 name: PULL_PULL_SHA
Sunnatillo08229242024-05-13 15:37:05 +030071 default: '{BRANCH_NAME}' # Default set to branch name. This is needed when running periodic jobs
Lennart Jern29a1b032024-01-15 15:34:59 +020072 description: 'Pull request head SHA'
73 # End of Prow parameters
Huy Mai3fcaf6d2024-01-16 14:16:25 +020074 - string:
75 name: GINKGO_FOCUS
76 default: '{GINKGO_FOCUS}'
77 description: 'The focus test to run'
Lennart Jern29a1b032024-01-15 15:34:59 +020078
Lennart Jernc04111d2023-09-21 11:28:01 +030079 properties:
80 - build-discarder:
81 days-to-keep: 30
82 num-to-keep: 300
83 artifact-days-to-keep: -1
84 artifact-num-to-keep: -1
85 - github:
Lennart Jerne985c152023-09-28 11:16:15 +030086 url: https://github.com/metal3-io/baremetal-operator
Lennart Jernc04111d2023-09-21 11:28:01 +030087
Lennart Jerne985c152023-09-28 11:16:15 +030088 triggers: "{triggers}"
Lennart Jernc04111d2023-09-21 11:28:01 +030089
90 pipeline-scm:
91 scm:
92 - git:
93 url: "{ci_github_repo}"
94 credentials-id: "{ci_github_jenkins_credentials_id}"
95 branches:
96 - "{branch|main}"
97 name: 'origin'
98 refspec: "+refs/heads/*:refs/remotes/origin/*"
99 wipe-workspace: True
100 honor-refspec: True
101 shallow-clone: False
102 script-path: "jenkins/jobs/bmo_e2e_tests.pipeline"
103 lightweight-checkout: False