Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50285

Unable to retrieve repository list from Bitbucket when using a user with read-only permissions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None

      I'm trying to create a Job of type "Multibranch" with a Bitbucket repository owned by a User. I have a user that has read permissions over the repository, but I'm currently facing the following issues:

      1) If using 'owner' (without the tilde) Jenkins complains not Finding the owner

      2) If using '~owner' (as suggested by doc) Jenkins create an exception about cache an show the attached exception, showing that the URL being used to retrieve the repositories is some how not correct 'https://api.bitbucket.org/2.0/repositories/~owner?role=contributor&page=1&pagelen=50'

      If I use this URL in Postman I get a 404 response, but if I change the ~owner to owner then I get an empty response (because it's being filtered by contributor), but since the user is read-only, if a remove contributor in the request then I get the repositories for which the user has access to. I understand that this could be happening sine 2.2.8 because of -JENKINS-48084- and -JENKINS-45836- but unfortunately another Admin has been applying updates so I'm unable to keep track if this wasn't happening on a previous version or not (or to rollback for the time being). Will try to create a new instance with a previous version to 2.2.8 to see if that fixes the issue.

            Unassigned Unassigned
            ggarcia24 Gonzalo Garcia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: