blob: 02b203cf16c1baf16f84d417df932efa4fcd659d [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 * * *"
Huy Mai64120882024-02-01 14:32:00 +020021 - "{job_prefix}-{name}-e2e-test-{type}":
22 type: optional-periodic
23 GINKGO_FOCUS: "upgrade"
24 triggers:
25 # Run at 03:45 (UTC) every day
26 - timed: "45 3 * * *"
Lennart Jernc04111d2023-09-21 11:28:01 +030027
28- job-template:
Lennart Jerne985c152023-09-28 11:16:15 +030029 name: "{job_prefix}-{name}-e2e-test-{type}"
Lennart Jernc04111d2023-09-21 11:28:01 +030030 project-type: pipeline
31 defaults: global
32 disabled: False
33 concurrent: True
34
Lennart Jern29a1b032024-01-15 15:34:59 +020035 parameters:
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 description: 'Project github repo org name'
46 - string:
47 name: REPO_NAME
48 description: 'Project github repo name'
49 - string:
50 name: PULL_BASE_REF
51 default: 'main'
52 description: 'Ref name of the base branch'
53 - string:
54 name: PULL_PULL_SHA
55 description: 'Pull request head SHA'
56 # End of Prow parameters
Huy Mai3fcaf6d2024-01-16 14:16:25 +020057 - string:
58 name: GINKGO_FOCUS
59 default: '{GINKGO_FOCUS}'
60 description: 'The focus test to run'
Lennart Jern29a1b032024-01-15 15:34:59 +020061
Lennart Jernc04111d2023-09-21 11:28:01 +030062 properties:
63 - build-discarder:
64 days-to-keep: 30
65 num-to-keep: 300
66 artifact-days-to-keep: -1
67 artifact-num-to-keep: -1
68 - github:
Lennart Jerne985c152023-09-28 11:16:15 +030069 url: https://github.com/metal3-io/baremetal-operator
Lennart Jernc04111d2023-09-21 11:28:01 +030070
Lennart Jerne985c152023-09-28 11:16:15 +030071 triggers: "{triggers}"
Lennart Jernc04111d2023-09-21 11:28:01 +030072
73 pipeline-scm:
74 scm:
75 - git:
76 url: "{ci_github_repo}"
77 credentials-id: "{ci_github_jenkins_credentials_id}"
78 branches:
79 - "{branch|main}"
80 name: 'origin'
81 refspec: "+refs/heads/*:refs/remotes/origin/*"
82 wipe-workspace: True
83 honor-refspec: True
84 shallow-clone: False
85 script-path: "jenkins/jobs/bmo_e2e_tests.pipeline"
86 lightweight-checkout: False