7d732131bf2472f9c4fbd3ab21ad1a7683af6f58
[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 trigger is then also for PR comments.
5     type: pull
6     triggers:
7     # Trigger the job based on comments on a GH pull request.
8     - github-pull-request:
9         admin-list:
10         - "{ci_github_admin_user}"
11         org-list: "{ci_github_whitelist_org}"
12         auth-id: "{ci_ghprb_auth_id}"
13         trigger-phrase: '((.|\n)*\s)?/{job_prefix}-{name}-e2e-test(\s(.|\n)*)?'
14         skip-build-phrase: '/skip-test'
15         only-trigger-phrase: True
16         github-hooks: True
17         permit-all: False
18         auto-close-on-fail: False
19         allow-whitelist-orgs-as-admins: True
20         white-list-target-branches:
21         - 'main'
22         - 'release-0.5'
23         status-context: "{job_prefix}-{name}-e2e-test"
24         success-status: "Passed"
25         failure-status: "Failed"
26         error-status: "Error"
27         cancel-builds-on-update: True
28
29     jobs:
30     - "{job_prefix}-{name}-e2e-test-{type}"
31     - "{job_prefix}-{name}-e2e-test-{type}":
32         type: periodic
33         triggers:
34         # Run at 02:45 (UTC) every day
35         - timed: "45 2 * * *"
36
37 - job-template:
38     name: "{job_prefix}-{name}-e2e-test-{type}"
39     project-type: pipeline
40     defaults: global
41     disabled: False
42     concurrent: True
43
44     properties:
45     - build-discarder:
46         days-to-keep: 30
47         num-to-keep: 300
48         artifact-days-to-keep: -1
49         artifact-num-to-keep: -1
50     - github:
51         url: https://github.com/metal3-io/baremetal-operator
52
53     triggers: "{triggers}"
54
55     pipeline-scm:
56       scm:
57       - git:
58           url: "{ci_github_repo}"
59           credentials-id: "{ci_github_jenkins_credentials_id}"
60           branches:
61           - "{branch|main}"
62           name: 'origin'
63           refspec: "+refs/heads/*:refs/remotes/origin/*"
64           wipe-workspace: True
65           honor-refspec: True
66           shallow-clone: False
67       script-path: "jenkins/jobs/bmo_e2e_tests.pipeline"
68       lightweight-checkout: False