Skip to content
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

Is there a simpler way to skip pipelineruns #1417

Open
tisutisu opened this issue Sep 6, 2023 · 3 comments
Open

Is there a simpler way to skip pipelineruns #1417

tisutisu opened this issue Sep 6, 2023 · 3 comments

Comments

@tisutisu
Copy link

tisutisu commented Sep 6, 2023

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.

@chmouel
Copy link
Member

chmouel commented Sep 6, 2023

there is no support for this at the moment,

@tisutisu
Copy link
Author

tisutisu commented Sep 6, 2023

Thanks @chmouel for the quick response.

@chmouel
Copy link
Member

chmouel commented Sep 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants