diff --git a/.tekton/scanner-build.yaml b/.tekton/scanner-build.yaml index 2ddba6c1d..459a75075 100644 --- a/.tekton/scanner-build.yaml +++ b/.tekton/scanner-build.yaml @@ -9,7 +9,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "500" # TODO(ROX-21073): re-enable for all PR branches - pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && (target_branch == "master" || target_branch.startsWith("release-"))) || (event == "pull_request" && (source_branch.contains("konflux") || source_branch.contains("appstudio") || source_branch.contains("rhtap"))) + pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && target_branch.matches("^(master|release-.*)$")) || (event == "pull_request" && source_branch.matches("(konflux|appstudio|rhtap)")) creationTimestamp: null labels: appstudio.openshift.io/application: acs diff --git a/.tekton/scanner-db-build.yaml b/.tekton/scanner-db-build.yaml index 63394c69c..f69610f3d 100644 --- a/.tekton/scanner-db-build.yaml +++ b/.tekton/scanner-db-build.yaml @@ -9,7 +9,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "500" # TODO(ROX-21073): re-enable for all PR branches - pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && (target_branch == "master" || target_branch.startsWith("release-"))) || (event == "pull_request" && (source_branch.contains("konflux") || source_branch.contains("appstudio") || source_branch.contains("rhtap"))) + pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && target_branch.matches("^(master|release-.*)$")) || (event == "pull_request" && source_branch.matches("(konflux|appstudio|rhtap)")) creationTimestamp: null labels: appstudio.openshift.io/application: acs diff --git a/.tekton/scanner-db-slim-build.yaml b/.tekton/scanner-db-slim-build.yaml index b1a42a083..0050b64c8 100644 --- a/.tekton/scanner-db-slim-build.yaml +++ b/.tekton/scanner-db-slim-build.yaml @@ -9,7 +9,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "500" # TODO(ROX-21073): re-enable for all PR branches - pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && (target_branch == "master" || target_branch.startsWith("release-"))) || (event == "pull_request" && (source_branch.contains("konflux") || source_branch.contains("appstudio") || source_branch.contains("rhtap"))) + pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && target_branch.matches("^(master|release-.*)$")) || (event == "pull_request" && source_branch.matches("(konflux|appstudio|rhtap)")) creationTimestamp: null labels: appstudio.openshift.io/application: acs diff --git a/.tekton/scanner-slim-build.yaml b/.tekton/scanner-slim-build.yaml index 144f7574e..c8b102d05 100644 --- a/.tekton/scanner-slim-build.yaml +++ b/.tekton/scanner-slim-build.yaml @@ -9,7 +9,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "500" # TODO(ROX-21073): re-enable for all PR branches - pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && (target_branch == "master" || target_branch.startsWith("release-"))) || (event == "pull_request" && (source_branch.contains("konflux") || source_branch.contains("appstudio") || source_branch.contains("rhtap"))) + pipelinesascode.tekton.dev/on-cel-expression: (event == "push" && target_branch.matches("^(master|release-.*)$")) || (event == "pull_request" && source_branch.matches("(konflux|appstudio|rhtap)")) creationTimestamp: null labels: appstudio.openshift.io/application: acs