From 141255a0c11b65541c8796cbd2316af20d6a880a Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Wed, 7 Jan 2026 10:29:07 +0100 Subject: [PATCH 1/2] tekton on-cel-expression --- ...-observability-cli-ystream-pull-request.yaml | 15 +++++++++++++-- .../network-observability-cli-ystream-push.yaml | 17 +++++++++++++++-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.tekton/network-observability-cli-ystream-pull-request.yaml b/.tekton/network-observability-cli-ystream-pull-request.yaml index 58828977d..4c146b839 100644 --- a/.tekton/network-observability-cli-ystream-pull-request.yaml +++ b/.tekton/network-observability-cli-ystream-pull-request.yaml @@ -7,8 +7,19 @@ metadata: build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "main" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "pull_request" && target_branch == "main" && ( + ".tekton/***".pathChanged() || + ".dockerignore".pathChanged() || + "Dockerfile.downstream".pathChanged() || + "Dockerfile-args.downstream".pathChanged() || + "go.mod".pathChanged() || + "go.sum".pathChanged() || + "main.go".pathChanged() || + "Makefile".pathChanged() || + "cmd/***".pathChanged() || + "LICENSE".pathChanged() + ) creationTimestamp: null labels: appstudio.openshift.io/application: netobserv-ystream diff --git a/.tekton/network-observability-cli-ystream-push.yaml b/.tekton/network-observability-cli-ystream-push.yaml index 0d6701952..dc6f793f4 100644 --- a/.tekton/network-observability-cli-ystream-push.yaml +++ b/.tekton/network-observability-cli-ystream-push.yaml @@ -7,8 +7,21 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" # switch comment in/out at branch cut / release - # pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" - pipelinesascode.tekton.dev/on-cel-expression: "false" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" && target_branch == "main" && ( + ".tekton/***".pathChanged() || + ".dockerignore".pathChanged() || + "Dockerfile.downstream".pathChanged() || + "Dockerfile-args.downstream".pathChanged() || + "go.mod".pathChanged() || + "go.sum".pathChanged() || + "main.go".pathChanged() || + "Makefile".pathChanged() || + "cmd/***".pathChanged() || + "LICENSE".pathChanged() || + "vendor/***".pathChanged() + ) + # pipelinesascode.tekton.dev/on-cel-expression: "false" creationTimestamp: null labels: appstudio.openshift.io/application: netobserv-ystream From dd5cd4e16aee3cf247b4b5cf560a075bc9d0c48d Mon Sep 17 00:00:00 2001 From: Julien Pinsonneau Date: Tue, 13 Jan 2026 10:13:48 +0100 Subject: [PATCH 2/2] add missing paths --- .tekton/network-observability-cli-ystream-pull-request.yaml | 4 ++++ .tekton/network-observability-cli-ystream-push.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.tekton/network-observability-cli-ystream-pull-request.yaml b/.tekton/network-observability-cli-ystream-pull-request.yaml index 4c146b839..57ec0843a 100644 --- a/.tekton/network-observability-cli-ystream-pull-request.yaml +++ b/.tekton/network-observability-cli-ystream-pull-request.yaml @@ -18,6 +18,10 @@ metadata: "main.go".pathChanged() || "Makefile".pathChanged() || "cmd/***".pathChanged() || + "commands/***".pathChanged() || + "res/***".pathChanged() || + "scripts/***".pathChanged() || + ".mk/***".pathChanged() || "LICENSE".pathChanged() ) creationTimestamp: null diff --git a/.tekton/network-observability-cli-ystream-push.yaml b/.tekton/network-observability-cli-ystream-push.yaml index dc6f793f4..31b3e517d 100644 --- a/.tekton/network-observability-cli-ystream-push.yaml +++ b/.tekton/network-observability-cli-ystream-push.yaml @@ -18,6 +18,10 @@ metadata: "main.go".pathChanged() || "Makefile".pathChanged() || "cmd/***".pathChanged() || + "commands/***".pathChanged() || + "res/***".pathChanged() || + "scripts/***".pathChanged() || + ".mk/***".pathChanged() || "LICENSE".pathChanged() || "vendor/***".pathChanged() )