Skip to content

Bitbucket Server: Builds Stay In Progress Forever / Are Created without .tekton dir #2148

Open
@tricktron

Description

@tricktron

Hi there,

We have the following strange behaviour:

Actual Behaviour

  1. Add the PaC user as admin to the bitbucket project.
  2. Create the pac webhook with push, modified, opened, source branch updated, comment added events.
  3. 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:

Image

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.

#1696
#1726

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions