-
Notifications
You must be signed in to change notification settings - Fork 16
Update on-cel-expression values for tekton pipelines to limit unnecessary builds
#241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,28 @@ metadata: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| build.appstudio.redhat.com/target_branch: '{{target_branch}}' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pipelinesascode.tekton.dev/cancel-in-progress: "false" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pipelinesascode.tekton.dev/max-keep-runs: "3" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && files.all != ["konflux_clusterserviceversion_overlay.data"] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pipelinesascode.tekton.dev/on-cel-expression: | | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| event == "push" && | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| target_branch == "main" && | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.tekton/build-pipeline.yaml'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'etcddump/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'hack/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'ouger/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'src/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'vendor/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'build.rs'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'Cargo.lock'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'Cargo.toml'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'ownership.sh'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'reproto'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'run_seed'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 'vendor.sh'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.tekton/recert-4-20-push.yaml'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.konflux/Dockerfile'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.konflux/lock-build/***'.pathChanged() || | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| '.konflux/lock-runtime/***'.pathChanged() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+15
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Correct wildcard syntax in Apply this diff to fix the patterns: - 'etcddump/***'.pathChanged() ||
+ 'etcddump/**'.pathChanged() ||
- 'hack/***'.pathChanged() ||
+ 'hack/**'.pathChanged() ||
- 'ouger/***'.pathChanged() ||
+ 'ouger/**'.pathChanged() ||
- 'src/***'.pathChanged() ||
+ 'src/**'.pathChanged() ||
- 'vendor/***'.pathChanged() ||
+ 'vendor/**'.pathChanged() ||
- '.konflux/lock-build/***'.pathChanged() ||
+ '.konflux/lock-build/**'.pathChanged() ||
- '.konflux/lock-runtime/***'.pathChanged()
+ '.konflux/lock-runtime/**'.pathChanged()📝 Committable suggestion
Suggested change
🧰 Tools🪛 YAMLlint (1.35.1)[error] 29-29: trailing spaces (trailing-spaces) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| creationTimestamp: null | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| labels: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| appstudio.openshift.io/application: lifecycle-agent-4-20 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Fix wildcard patterns in
.pathChanged()calls.The use of
***may not match any files. Tekton’s globbing expects**for recursive matching. Incorrect patterns can silently disable triggers for those directories.📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 29-29: trailing spaces
(trailing-spaces)