From 56a8948d9446927e137ff41b400f4ddff0f3b01e Mon Sep 17 00:00:00 2001 From: Romain Arnaud Date: Fri, 1 May 2026 15:01:30 -0400 Subject: [PATCH] feat: add conditional annotations for the e2e PipelineRun Introduced annotations to the e2e-main-pipeline.yaml to trigger on specific files paths. Assisted-by: Cursor rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED --- integration-tests/pipelines/e2e-main-pipeline.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/integration-tests/pipelines/e2e-main-pipeline.yaml b/integration-tests/pipelines/e2e-main-pipeline.yaml index 7d74de2d4..e56d2d47a 100644 --- a/integration-tests/pipelines/e2e-main-pipeline.yaml +++ b/integration-tests/pipelines/e2e-main-pipeline.yaml @@ -3,6 +3,18 @@ apiVersion: tekton.dev/v1 kind: PipelineRun metadata: name: e2e-main-pipeline + annotations: + pipelinesascode.tekton.dev/on-cel-expression: | + (event == "pull_request" || event == "push") + && target_branch == "release-0.1" + && !files.all.all(x, + !x.matches('^cmd/') + && !x.matches('^e2e/') + && !x.matches('^installer/') + && !x.matches('^integration-tests/') + && !x.matches('^Containerfile$') + && !x.matches('^Makefile$') + ) spec: pipelineSpec: params: