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

appending duplicate pipelineruns leads to found multiple pipelinerun in .tekton dir issue #1447

Closed
savitaashture opened this issue Sep 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@savitaashture
Copy link
Member

When we have multiple pipelineruns with generateName in .tekton directory we are facing below issue

match_test.go:185: assertion failed: error is not nil: 
found multiple pipelinerun in .tekton with the same generateName: 
pull_request-test1, please update

Because here https://github.com/openshift-pipelines/pipelines-as-code/blob/main/pkg/pipelineascode/match.go#L224-L226 we have if condition to match based on Name and if there is no name specified in any of the Pipelineruns in .tekton dir then there is a chance of appending duplicate pipelineruns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant