File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,9 +7,19 @@ metadata:
77 build.appstudio.redhat.com/pull_request_number : ' {{pull_request_number}}'
88 build.appstudio.redhat.com/target_branch : ' {{target_branch}}'
99 pipelinesascode.tekton.dev/cancel-in-progress : " true"
10- pipelinesascode.tekton.dev/max-keep-runs : " 3"
11- pipelinesascode.tekton.dev/on-cel-expression : event == "pull_request" && target_branch
12- == "main"
10+ pipelinesascode.tekton.dev/max-keep-runs : " 10"
11+ pipelinesascode.tekton.dev/on-label : " []"
12+ # - body.action != "ready_for_review" prevents double-triggering when a draft PR is marked ready for review.
13+ # - trigger only for PRs on main and release branches.
14+ # - support triggering by label: "konflux-build"
15+ pipelinesascode.tekton.dev/on-cel-expression : |
16+ (
17+ event == "pull_request" && body.action != "ready_for_review" && (
18+ target_branch == "main" ||
19+ target_branch.startsWith("release-") ||
20+ (has(body.pull_request) && has(body.pull_request.labels) && body.pull_request.labels.exists(l, l.name == "konflux-build"))
21+ )
22+ )
1323 labels :
1424 appstudio.openshift.io/application : acs-mcp
1525 appstudio.openshift.io/component : acs-mcp-server
Original file line number Diff line number Diff line change @@ -4,11 +4,26 @@ metadata:
44 annotations :
55 build.appstudio.openshift.io/repo : https://github.com/stackrox/stackrox-mcp?rev={{revision}}
66 build.appstudio.redhat.com/commit_sha : ' {{revision}}'
7+ build.appstudio.redhat.com/pull_request_number : ' {{pull_request_number}}'
78 build.appstudio.redhat.com/target_branch : ' {{target_branch}}'
8- pipelinesascode.tekton.dev/cancel-in-progress : " false"
9- pipelinesascode.tekton.dev/max-keep-runs : " 3"
10- pipelinesascode.tekton.dev/on-cel-expression : event == "push" && target_branch
11- == "main"
9+ pipelinesascode.tekton.dev/max-keep-runs : " 10"
10+ pipelinesascode.tekton.dev/on-label : " []"
11+ # For push trigger:
12+ # - trigger on commit push on main or release branch.
13+ # - trigger on tag pushes.
14+ # For PR triggers:
15+ # - body.action != "ready_for_review" prevents double-triggering when a draft PR is marked ready for review.
16+ # - trigger only for PRs on release branches.
17+ # - support triggering by label: "konflux-build"
18+ pipelinesascode.tekton.dev/on-cel-expression : |
19+ (
20+ event == "push" && target_branch.matches("^(main|release-.*|refs/tags/.*)$")
21+ ) || (
22+ event == "pull_request" && body.action != "ready_for_review" && (
23+ target_branch.startsWith("release-") ||
24+ (has(body.pull_request) && has(body.pull_request.labels) && body.pull_request.labels.exists(l, l.name == "konflux-build"))
25+ )
26+ )
1227 labels :
1328 appstudio.openshift.io/application : acs-mcp
1429 appstudio.openshift.io/component : acs-mcp-server
You can’t perform that action at this time.
0 commit comments