pipelines-as-code icon indicating copy to clipboard operation
pipelines-as-code copied to clipboard

Is there a simpler way to skip pipelineruns

Open tisutisu opened this issue 2 years ago • 3 comments

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.

tisutisu avatar Sep 06 '23 09:09 tisutisu

there is no support for this at the moment,

chmouel avatar Sep 06 '23 09:09 chmouel

Thanks @chmouel for the quick response.

tisutisu avatar Sep 06 '23 09:09 tisutisu

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...

chmouel avatar Sep 06 '23 09:09 chmouel