Skip to content

Commit a91c2af

Browse files
mynhardtburgersomya-bhatnagar
authored andcommitted
ci: extend Konflux docs-only skip to match Prow skip rules (#642)
Extend the CEL expression in Tekton PipelineRun definitions to also skip Konflux builds when only `.gitignore`, `OWNERS`, `PROJECT`, `LICENSE`, .`github/`, or `.tekton/` files are changed — matching the existing skip_if_only_changed regex used by the Prow ci-operator jobs. An example of the existing prow ci-operator job skip condition: ```yaml skip_if_only_changed: ^docs/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|PROJECT|LICENSE|CONTRIBUTING\.md)$|^\.github/|^\.tekton/ ``` - https://github.com/openshift/release/blob/01591970ea5008bda7b05a49ce8a0905207182ee/ci-operator/jobs/opendatahub-io/models-as-a-service/opendatahub-io-models-as-a-service-main-presubmits.yaml#L21 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> * **Chores** * Updated pull request pipeline triggering conditions to exclude additional configuration files and CI/CD directories from initiating automated checks. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent f6a5815 commit a91c2af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.tekton/odh-maas-controller-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ metadata:
1111
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
1212
== "main" && !files.all.all(x, x.matches('^docs/') || x.matches('\\.md$')
1313
|| x.matches('^(.*/)?(\\.gitignore|OWNERS|PROJECT|LICENSE)$')
14-
|| x.matches('^\\.github/'))
14+
|| x.matches('^\\.github/') || x.matches('^\\.tekton/'))
1515
creationTimestamp: null
1616
labels:
1717
appstudio.openshift.io/application: opendatahub-builds

0 commit comments

Comments
 (0)