blob: 1c72c8473c7ffc6eb618234058f2369d3a3b8d22 [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: " "
Lennart Jernca144392024-01-19 13:47:57 +02007 # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below)
8 triggers: []
Lennart Jernc04111d2023-09-21 11:28:01 +03009
10 jobs:
Lennart Jerne985c152023-09-28 11:16:15 +030011 - "{job_prefix}-{name}-e2e-test-{type}"
Huy Mai3fcaf6d2024-01-16 14:16:25 +020012 # This job runs the "optional" set, which currently includes only "upgrade" tests
13 - "{job_prefix}-{name}-e2e-test-{type}":
14 type: optional-pull
15 GINKGO_FOCUS: "upgrade"
Lennart Jerne985c152023-09-28 11:16:15 +030016 - "{job_prefix}-{name}-e2e-test-{type}":
17 type: periodic
18 triggers:
19 # Run at 02:45 (UTC) every day
20 - timed: "45 2 * * *"
Lennart Jernc04111d2023-09-21 11:28:01 +030021
22- job-template:
Lennart Jerne985c152023-09-28 11:16:15 +030023 name: "{job_prefix}-{name}-e2e-test-{type}"
Lennart Jernc04111d2023-09-21 11:28:01 +030024 project-type: pipeline
25 defaults: global
26 disabled: False
27 concurrent: True
28
Lennart Jern29a1b032024-01-15 15:34:59 +020029 parameters:
30 # Parameters set by Prow
31 - string:
32 name: BUILD_ID
33 description: 'Used by Prow when triggering jobs'
34 - string:
35 name: PROW_JOB_ID
36 description: 'Used by Prow when triggering jobs'
37 - string:
38 name: REPO_OWNER
39 description: 'Project github repo org name'
40 - string:
41 name: REPO_NAME
42 description: 'Project github repo name'
43 - string:
44 name: PULL_BASE_REF
45 default: 'main'
46 description: 'Ref name of the base branch'
47 - string:
48 name: PULL_PULL_SHA
49 description: 'Pull request head SHA'
50 # End of Prow parameters
Huy Mai3fcaf6d2024-01-16 14:16:25 +020051 - string:
52 name: GINKGO_FOCUS
53 default: '{GINKGO_FOCUS}'
54 description: 'The focus test to run'
Lennart Jern29a1b032024-01-15 15:34:59 +020055
Lennart Jernc04111d2023-09-21 11:28:01 +030056 properties:
57 - build-discarder:
58 days-to-keep: 30
59 num-to-keep: 300
60 artifact-days-to-keep: -1
61 artifact-num-to-keep: -1
62 - github:
Lennart Jerne985c152023-09-28 11:16:15 +030063 url: https://github.com/metal3-io/baremetal-operator
Lennart Jernc04111d2023-09-21 11:28:01 +030064
Lennart Jerne985c152023-09-28 11:16:15 +030065 triggers: "{triggers}"
Lennart Jernc04111d2023-09-21 11:28:01 +030066
67 pipeline-scm:
68 scm:
69 - git:
70 url: "{ci_github_repo}"
71 credentials-id: "{ci_github_jenkins_credentials_id}"
72 branches:
73 - "{branch|main}"
74 name: 'origin'
75 refspec: "+refs/heads/*:refs/remotes/origin/*"
76 wipe-workspace: True
77 honor-refspec: True
78 shallow-clone: False
79 script-path: "jenkins/jobs/bmo_e2e_tests.pipeline"
80 lightweight-checkout: False