pipelines-as-code
pipelines-as-code copied to clipboard
Is there a simpler way to skip pipelineruns
When tried to skip the pipelinerun for unrelated changes in one of our repo, we end up creating a long on-cel-expression, which is prone to user errors and also need to be updated when there is a new directory or file is added to the repository.
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request" && target_branch == "main" && (".tekton/***".pathChanged() || "appstudio-utils/***".pathChanged() || "hack/***".pathChanged() || "partners/***".pathChanged() || "pipelines/***".pathChanged() || "task/***".pathChanged() || ".yamllint".pathChanged())
Does supporting expression like skip_if_only_changed will help in such scenario, which openshift-ci supports, Like this example.
Which looks more simpler and only need to specify when we want to skip the pipelinerun.
there is no support for this at the moment,
Thanks @chmouel for the quick response.
if you feel this is very much needed please feel free to request for a RFE by the proper channel (jira/your team lead) and we can see if that's something we can implement...