Add periodic bmo tests for release-0.6
[infra/cicd.git] / jjb / metal3 / baremetal-operator / jjb-bmo-e2e.yaml
1 - project:
2     name: bmo
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)
5     type: pull
6     GINKGO_FOCUS: " "
7     # Default BMO branch to trigger the test in is "main"
8     BRANCH_NAME: "main"
9     # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below)
10     triggers: []
11
12     jobs:
13     - "{job_prefix}-{name}-e2e-test-{type}"
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"
18     - "{job_prefix}-{name}-e2e-test-{type}":
19         type: periodic
20         triggers:
21         # Run at 02:45 (UTC) every day
22         - timed: "45 2 * * *"
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 * * *"
29
30     # Pediodic jobs for release-0.6 branch
31     - "{job_prefix}-{name}-e2e-test-{type}":
32         type: periodic-release-0.6
33         BRANCH_NAME: "release-0.6"
34         triggers:
35         # Run at 01:45 (UTC) every day
36         - timed: "45 1 * * *"
37     - "{job_prefix}-{name}-e2e-test-{type}":
38         type: optional-periodic-release-0.6
39         BRANCH_NAME: "release-0.6"
40         GINKGO_FOCUS: "upgrade"
41         triggers:
42         # Run at 01:45 (UTC) every day
43         - timed: "45 1 * * *"
44
45 - job-template:
46     name: "{job_prefix}-{name}-e2e-test-{type}"
47     project-type: pipeline
48     defaults: global
49     disabled: False
50     concurrent: True
51
52     parameters:
53     # Parameters set by Prow
54     - string:
55         name: BUILD_ID
56         description: 'Used by Prow when triggering jobs'
57     - string:
58         name: PROW_JOB_ID
59         description: 'Used by Prow when triggering jobs'
60     - string:
61         name: REPO_OWNER
62         description: 'Project github repo org name'
63     - string:
64         name: REPO_NAME
65         description: 'Project github repo name'
66     - string:
67         name: PULL_BASE_REF
68         default: '{BRANCH_NAME}'
69         description: 'Ref name of the base branch'
70     - string:
71         name: PULL_PULL_SHA
72         description: 'Pull request head SHA'
73     # End of Prow parameters
74     - string:
75         name: GINKGO_FOCUS
76         default: '{GINKGO_FOCUS}'
77         description: 'The focus test to run'
78
79     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:
86         url: https://github.com/metal3-io/baremetal-operator
87
88     triggers: "{triggers}"
89
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