Skip to content

Commit 29e1b83

Browse files
committed
konflux: fix CEL expression
The current CEL expression does not trigger main pipeline when there is a change in .tekton/fcos-buildroot/ directory.
1 parent 99e1749 commit 29e1b83

24 files changed

+24
-38
lines changed

.tekton/next-devel/on-pull-request/fedora-coreos-next-devel-on-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
1515
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1616
pipelinesascode.tekton.dev/max-keep-runs: "3"
17-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))
17+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))
1818
creationTimestamp: null
1919
spec:
2020
params:

.tekton/next-devel/on-pull-request/kustomization.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ patches:
2626
value: 'fedora-coreos-next-devel-on-pull-request'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))'
30-
31-
29+
value: 'event == "pull_request" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))'

.tekton/next-devel/on-push/fedora-coreos-next-devel-on-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1414
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1515
pipelinesascode.tekton.dev/max-keep-runs: "3"
16-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))
16+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))
1717
creationTimestamp: null
1818
spec:
1919
params:

.tekton/next-devel/on-push/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ patches:
2626
value: 'fedora-coreos-next-devel-on-push'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "push" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/")))'
30-
29+
value: 'event == "push" && target_branch == "next-devel" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))'

.tekton/next/on-pull-request/fedora-coreos-next-on-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
1515
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1616
pipelinesascode.tekton.dev/max-keep-runs: "3"
17-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/")))
17+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))
1818
creationTimestamp: null
1919
spec:
2020
params:

.tekton/next/on-pull-request/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ patches:
2626
value: 'fedora-coreos-next-on-pull-request'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "pull_request" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/")))'
30-
29+
value: 'event == "pull_request" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))'

.tekton/next/on-push/fedora-coreos-next-on-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1414
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1515
pipelinesascode.tekton.dev/max-keep-runs: "3"
16-
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/")))
16+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))
1717
creationTimestamp: null
1818
spec:
1919
params:

.tekton/next/on-push/kustomization.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ patches:
2626
value: 'fedora-coreos-next-on-push'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "push" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/")))'
30-
29+
value: 'event == "push" && target_branch == "next" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))'

.tekton/rawhide/on-pull-request/fedora-coreos-rawhide-on-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
1515
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
1616
pipelinesascode.tekton.dev/max-keep-runs: "3"
17-
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "rawhide" && !(files.all.all(f, f.matches("ci/buildroot/")))
17+
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "rawhide" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))
1818
creationTimestamp: null
1919
spec:
2020
params:

.tekton/rawhide/on-pull-request/kustomization.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,4 @@ patches:
2626
value: 'fedora-coreos-rawhide-on-pull-request'
2727
- op: replace
2828
path: /metadata/annotations/pipelinesascode.tekton.dev~1on-cel-expression
29-
value: 'event == "pull_request" && target_branch == "rawhide" && !(files.all.all(f, f.matches("ci/buildroot/")))'
30-
31-
29+
value: 'event == "pull_request" && target_branch == "rawhide" && !(files.all.all(f, f.matches("ci/buildroot/") || f.matches(".tekton/fcos-buildroot/")))'

0 commit comments

Comments
 (0)