Access to Bitbucket team's repositories

Thomas Fresneau's Avatar

Thomas Fresneau

19 Jul, 2018 07:01 PM

Hi,

I have created an account in Bitbucket dedicated to AppVeyor. I've setup the Bitbucket connection in my AppVeyor account details to authorize read / write access to BitBucket repositories. This specific Bitbucket account doesn't own any repositories but has access to my team's repositories (which I would like to access and build from AppVeyor). When I create a new project in AppVeyor, I cannot see any repositories. However, if I create a repository from this Bitbucket account, the repository can be selected in my new AppVeyor's project.
I am therefore wondering what is the proper way to access my team's Bitbucket repositories when creating a new project?

Thomas

  1. 1 Posted by Thomas Fresneau on 19 Jul, 2018 07:22 PM

    Thomas Fresneau's Avatar

    I guess my question can actually be generalized as: what access need be given to a Bitbucket account to allow accessing repositories from AppVeyor?
    I am not only expecting to have access to my Bitbucket team's repositories but to any repositories I am granted access to.

  2. 2 Posted by Ilya Finkelshte... on 20 Jul, 2018 01:35 AM

    Ilya Finkelshteyn's Avatar

    We call https://api.bitbucket.org/2.0/repositories?role=admin. We need this to ensure that AppVeyor can add SSH key and webhook for the repository.

    We have an issue to track this: https://github.com/appveyor/ci/issues/1277.

    You can make your dedicated account to be an Admin temporary and restrict its permissions after you added projects you need.

    Let us know if this workaround works for you.

  3. 3 Posted by Thomas Fresneau on 20 Jul, 2018 03:06 PM

    Thomas Fresneau's Avatar

    Thanks for the tip
    It works for me, as far as I can build the projects without needing admin rights.

  4. Ilya Finkelshteyn closed this discussion on 27 Aug, 2018 05:59 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac