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' |
Sunnatillo | eaae7d1 | 2024-01-09 15:58:02 +0200 | [diff] [blame] | 22 | - 'release-0.5' |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 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 |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 28 | |
| 29 | jobs: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 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 * * *" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 36 | |
| 37 | - job-template: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 38 | name: "{job_prefix}-{name}-e2e-test-{type}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 39 | project-type: pipeline |
| 40 | defaults: global |
| 41 | disabled: False |
| 42 | concurrent: True |
| 43 | |
Lennart Jern | 29a1b03 | 2024-01-15 15:34:59 +0200 | [diff] [blame^] | 44 | parameters: |
| 45 | # Parameters set by Prow |
| 46 | - string: |
| 47 | name: BUILD_ID |
| 48 | description: 'Used by Prow when triggering jobs' |
| 49 | - string: |
| 50 | name: PROW_JOB_ID |
| 51 | description: 'Used by Prow when triggering jobs' |
| 52 | - string: |
| 53 | name: REPO_OWNER |
| 54 | description: 'Project github repo org name' |
| 55 | - string: |
| 56 | name: REPO_NAME |
| 57 | description: 'Project github repo name' |
| 58 | - string: |
| 59 | name: PULL_BASE_REF |
| 60 | default: 'main' |
| 61 | description: 'Ref name of the base branch' |
| 62 | - string: |
| 63 | name: PULL_PULL_SHA |
| 64 | description: 'Pull request head SHA' |
| 65 | # End of Prow parameters |
| 66 | |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 67 | properties: |
| 68 | - build-discarder: |
| 69 | days-to-keep: 30 |
| 70 | num-to-keep: 300 |
| 71 | artifact-days-to-keep: -1 |
| 72 | artifact-num-to-keep: -1 |
| 73 | - github: |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 74 | url: https://github.com/metal3-io/baremetal-operator |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 75 | |
Lennart Jern | e985c15 | 2023-09-28 11:16:15 +0300 | [diff] [blame] | 76 | triggers: "{triggers}" |
Lennart Jern | c04111d | 2023-09-21 11:28:01 +0300 | [diff] [blame] | 77 | |
| 78 | pipeline-scm: |
| 79 | scm: |
| 80 | - git: |
| 81 | url: "{ci_github_repo}" |
| 82 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 83 | branches: |
| 84 | - "{branch|main}" |
| 85 | name: 'origin' |
| 86 | refspec: "+refs/heads/*:refs/remotes/origin/*" |
| 87 | wipe-workspace: True |
| 88 | honor-refspec: True |
| 89 | shallow-clone: False |
| 90 | script-path: "jenkins/jobs/bmo_e2e_tests.pipeline" |
| 91 | lightweight-checkout: False |