1c72c8473c7ffc6eb618234058f2369d3a3b8d22
[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     # These jobs are triggered by prow for PRs (empty trigger here) or by timer (see below)
8     triggers: []
9
10     jobs:
11     - "{job_prefix}-{name}-e2e-test-{type}"
12     # 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"
16     - "{job_prefix}-{name}-e2e-test-{type}":
17         type: periodic
18         triggers:
19         # Run at 02:45 (UTC) every day
20         - timed: "45 2 * * *"
21
22 - job-template:
23     name: "{job_prefix}-{name}-e2e-test-{type}"
24     project-type: pipeline
25     defaults: global
26     disabled: False
27     concurrent: True
28
29     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
51     - string:
52         name: GINKGO_FOCUS
53         default: '{GINKGO_FOCUS}'
54         description: 'The focus test to run'
55
56     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:
63         url: https://github.com/metal3-io/baremetal-operator
64
65     triggers: "{triggers}"
66
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