blob: 154f2b1ad59cee087653fdc3f8b0628b1d87fa66 [file] [log] [blame]
- project:
name: bmo
# Default "type" of job is "pull", as in pull request with the default set (all tests required in BMO PRs) the default trigger is then also for PR comments,
# and the default GINKGO_FOCUS is empty
type: pull
GINKGO_FOCUS: " "
triggers:
# Trigger the job based on comments on a GH pull request.
- github-pull-request:
admin-list:
- "{ci_github_admin_user}"
org-list: "{ci_github_whitelist_org}"
auth-id: "{ci_ghprb_auth_id}"
trigger-phrase: '((.|\n)*\s)?/{job_prefix}-{name}-e2e-test(\s(.|\n)*)?'
skip-build-phrase: '/skip-test'
only-trigger-phrase: True
github-hooks: True
permit-all: False
auto-close-on-fail: False
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'main'
- 'release-0.5'
status-context: "{job_prefix}-{name}-e2e-test"
success-status: "Passed"
failure-status: "Failed"
error-status: "Error"
cancel-builds-on-update: True
jobs:
- "{job_prefix}-{name}-e2e-test-{type}"
# This job runs the "optional" set, which currently includes only "upgrade" tests
- "{job_prefix}-{name}-e2e-test-{type}":
type: optional-pull
GINKGO_FOCUS: "upgrade"
triggers:
- github-pull-request:
admin-list:
- "{ci_github_admin_user}"
org-list: "{ci_github_whitelist_org}"
auth-id: "{ci_ghprb_auth_id}"
trigger-phrase: '((.|\n)*\s)?/{job_prefix}-{name}-e2e-optional-test(\s(.|\n)*)?'
skip-build-phrase: '/skip-test'
only-trigger-phrase: True
github-hooks: True
permit-all: False
auto-close-on-fail: False
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'main'
- 'release-0.5'
status-context: "{job_prefix}-{name}-e2e-optional-test"
success-status: "Passed"
failure-status: "Failed"
error-status: "Error"
cancel-builds-on-update: True
- "{job_prefix}-{name}-e2e-test-{type}":
type: periodic
triggers:
# Run at 02:45 (UTC) every day
- timed: "45 2 * * *"
- job-template:
name: "{job_prefix}-{name}-e2e-test-{type}"
project-type: pipeline
defaults: global
disabled: False
concurrent: True
parameters:
# Parameters set by Prow
- string:
name: BUILD_ID
description: 'Used by Prow when triggering jobs'
- string:
name: PROW_JOB_ID
description: 'Used by Prow when triggering jobs'
- string:
name: REPO_OWNER
description: 'Project github repo org name'
- string:
name: REPO_NAME
description: 'Project github repo name'
- string:
name: PULL_BASE_REF
default: 'main'
description: 'Ref name of the base branch'
- string:
name: PULL_PULL_SHA
description: 'Pull request head SHA'
# End of Prow parameters
- string:
name: GINKGO_FOCUS
default: '{GINKGO_FOCUS}'
description: 'The focus test to run'
properties:
- build-discarder:
days-to-keep: 30
num-to-keep: 300
artifact-days-to-keep: -1
artifact-num-to-keep: -1
- github:
url: https://github.com/metal3-io/baremetal-operator
triggers: "{triggers}"
pipeline-scm:
scm:
- git:
url: "{ci_github_repo}"
credentials-id: "{ci_github_jenkins_credentials_id}"
branches:
- "{branch|main}"
name: 'origin'
refspec: "+refs/heads/*:refs/remotes/origin/*"
wipe-workspace: True
honor-refspec: True
shallow-clone: False
script-path: "jenkins/jobs/bmo_e2e_tests.pipeline"
lightweight-checkout: False