Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 1 | - project: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame^] | 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 | status-context: "{job_prefix}-{name}-e2e-test" |
| 23 | success-status: "Passed" |
| 24 | failure-status: "Failed" |
| 25 | error-status: "Error" |
| 26 | cancel-builds-on-update: True |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 27 | |
| 28 | jobs: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame^] | 29 | - "{job_prefix}-{name}-e2e-test-{type}" |
| 30 | - "{job_prefix}-{name}-e2e-test-{type}": |
| 31 | type: periodic |
| 32 | triggers: |
| 33 | # Run at 02:45 (UTC) every day |
| 34 | - timed: "45 2 * * *" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 35 | |
| 36 | - job-template: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame^] | 37 | name: "{job_prefix}-{name}-e2e-test-{type}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 38 | project-type: pipeline |
| 39 | defaults: global |
| 40 | disabled: False |
| 41 | concurrent: True |
| 42 | |
| 43 | properties: |
| 44 | - build-discarder: |
| 45 | days-to-keep: 30 |
| 46 | num-to-keep: 300 |
| 47 | artifact-days-to-keep: -1 |
| 48 | artifact-num-to-keep: -1 |
| 49 | - github: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame^] | 50 | url: https://github.com/metal3-io/baremetal-operator |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 51 | |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame^] | 52 | triggers: "{triggers}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 53 | |
| 54 | pipeline-scm: |
| 55 | scm: |
| 56 | - git: |
| 57 | url: "{ci_github_repo}" |
| 58 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 59 | branches: |
| 60 | - "{branch|main}" |
| 61 | name: 'origin' |
| 62 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 63 | wipe-workspace: True |
| 64 | honor-refspec: True |
| 65 | shallow-clone: False |
| 66 | script-path: "jenkins/jobs/bmo_e2e_tests.pipeline" |
| 67 | lightweight-checkout: False |