Open
Description
Hi there,
We have the following strange behaviour:
Actual Behaviour
- Add the PaC user as admin to the bitbucket project.
- Create the pac webhook with push, modified, opened, source branch updated, comment added events.
- A user with inherited group admin access opens a pull request:
Observe that the pull request opened event triggers a zombie build which stays in progress forever and does not redirect to the Openshift console if you click on it:
Expected Behaviour
There are actually two expected behaviours:
- If there is no pipelinerun / no .tekton directory then no pipeline should be triggered instead of the zombie build.
- If there is a pipelinerun then it should correctly be triggered and by clicking on the link we should be redirected to the Openshift console.
Workaround / Possible Permission Issue
Currently, the user who opened the pull request has admin access to the Bitbucket repository through the inherited project's group access. If we instead add the user manually as admin to the project's user access then everything works. However, that means we need to add every committer manually to every project as admin which is annoying.
Do you know why each user must be project admin in bitbucket for this to work?
General / Possible Related Tickets
We are using Bitbucket Server v7.21.16 and pac 0.33.x.