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

Repositories you contribute to but don't own won't appear in Branch Source Plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A Bitbucket repository which is owned by an individual account can't be used with Jenkins as the Branch Source Plugin Currently functions.

      Currently, when loading the repositories after entering the Owner name, It makes a request to the BB API essentially "Give me all projects the credentialed user is a teammember on, or all repos owned by the crednetialed user, which are also owned by the username above".

      This causes a gap in the repo you're attempting to build is not a part of a project that your jenkins account is a team-member on, but instead is just a contributor for on someone else's repo. 

      In Version 2.1.x  the repository name was just a text field, allowing you to enter owner and repo manually and it worked fine. My Jenkins is now stuck at that version (and the related old versions of other plugins) because it can't properly select our repo anymore.

       

        Attachments

          Issue Links

            Activity

            ironsean Sean MacKay created issue -
            ironsean Sean MacKay made changes -
            Field Original Value New Value
            Environment Jenkins 2.60.2,
            Bitbucket Plugin 1.1.5
            puckel_ Matthieu Roisil made changes -
            Comment [ Ok, you've to define your Bitbucket server in "Manage Jenkins" > "Configure System" > "Bitbucket Endpoints" after that, it'll be available in your job configuration, but yes the upgrade of the plugins broke job if we don't configure endpoint... ]
            puckel_ Matthieu Roisil made changes -
            Comment [ I've the same issue (after updating plugins) (Jenkins 2.71, Bitbucket Branch Source Plugin 2.2.2) with my jobs (Team/Project or Multibranch pipeline) we have no input box to define the ServerURL and/or no Advanced settings box to set it. ]
            ironsean Sean MacKay made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            ironsean Sean MacKay made changes -
            Attachment image-2017-08-10-14-13-07-180.png [ 39239 ]
            ironsean Sean MacKay made changes -
            Description The Bitbucket Plugin under Branch Sources in my Pipeline project is not able to load my repositories. They are all private repositories but I've included my credentials which have access to the repositiories. If the wrong credentials are used it will not hit the API at all.

            An account with public repositories will appear in the results (like this:
            [https://api.bitbucket.org/2.0/repositories/IronSean?page=1&pagelen=50] ) but private repositories will now show up, and therefore when selecting the repository name in the Branch Source config it won't let you configure it. This leads to the Pipeline project no longer detecting or building.
            The Bitbucket Plugin under Branch Sources in my Pipeline project is not able to load my repositories. They are all private repositories but I've included my credentials which have access to the repositiories. If the wrong credentials are used it will not hit the API at all.

            An account with public repositories will appear in the results (like this:
             [https://api.bitbucket.org/2.0/repositories/IronSean?page=1&pagelen=50] ) but private repositories will now show up, and therefore when selecting the repository name in the Branch Source config it won't let you configure it. This leads to the Pipeline project no longer detecting or building.

             

            !image-2017-08-10-14-13-07-180.png!
            ironsean Sean MacKay made changes -
            Assignee Sean MacKay [ ironsean ]
            ironsean Sean MacKay made changes -
            Assignee Sean MacKay [ ironsean ]
            ironsean Sean MacKay made changes -
            Component/s bitbucket-branch-source-plugin [ 21428 ]
            ironsean Sean MacKay made changes -
            Environment Jenkins 2.60.2,
            Bitbucket Plugin 1.1.5
            Jenkins 2.60.2,
            Bitbucket Plugin 1.1.5
            Bitbucket Branch Source Plugin 2.2.2/2.2.3
            ironsean Sean MacKay made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ironsean Sean MacKay made changes -
            Summary Bitbucket plugin not loading private repositiories Repositories you contribute to but don't own won't appear in Branch Source Plugin
            Description The Bitbucket Plugin under Branch Sources in my Pipeline project is not able to load my repositories. They are all private repositories but I've included my credentials which have access to the repositiories. If the wrong credentials are used it will not hit the API at all.

            An account with public repositories will appear in the results (like this:
             [https://api.bitbucket.org/2.0/repositories/IronSean?page=1&pagelen=50] ) but private repositories will now show up, and therefore when selecting the repository name in the Branch Source config it won't let you configure it. This leads to the Pipeline project no longer detecting or building.

             

            !image-2017-08-10-14-13-07-180.png!
            A Bitbucket repository which is owned by an individual account can't be used with Jenkins as the Branch Source Plugin Currently functions.

            Currently, when loading the repositories after entering the Owner name, It makes a request to the BB API essentially "Give me all projects the credentialed user is a teammember on, or all repos owned by the crednetialed user, which are also owned by the username above".

            This causes a gap in the repo you're attempting to build is not a part of a project that your jenkins account is a team-member on, but instead is just a contributor for on someone else's repo. 

            In Version 2.1.x  the repository name was just a text field, allowing you to enter owner and repo manually and it worked fine. My Jenkins is now stuck at that version (and the related old versions of other plugins) because it can't properly select our repo anymore.

             

            !image-2017-08-10-14-13-07-180.png!
            Environment Jenkins 2.60.2,
            Bitbucket Plugin 1.1.5
            Bitbucket Branch Source Plugin 2.2.2/2.2.3
            Jenkins 2.60.2,
            Bitbucket Plugin 1.1.5
            Bitbucket Branch Source Plugin 2.2.2/2.2.3/2.3.4/2.3.5
            ironsean Sean MacKay made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            stephenconnolly Stephen Connolly made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            stephenconnolly Stephen Connolly made changes -
            Remote Link This issue links to "Page (Jenkins Wiki)" [ 19414 ]
            ironsean Sean MacKay made changes -
            Link This issue is duplicated by JENKINS-48084 [ JENKINS-48084 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                ironsean Sean MacKay
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: