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

Unable to create projects based on personal repos in Bitbucket Server

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
    • Environment:
    • Sprint:
      Blue Ocean 1.2, Blue Ocean 1.3
    • Similar Issues:

      Description

      Summary:
      It's not possible to create a new Pipeline based on a personal repository on a Bitbucket server. This is because the Pipeline creation wizard starts by having the user select a Bitbucket "Project." But personal repositories aren't part of a project in Bitbucket. This means you'll never be able to build them.

      Prerequisites:

      • A Bitbucket Server running 5.2.0 or higher

      Steps to recreate:
      1. Create a personal repo on Bitbucket. To do this, click on your avatar in the top right corner, and select "View Profile"

      2. From your profile page, click "Create Repository" as shown here:

      3. Go through the standard steps of creating a repository as you normally would. In my example, I've got a super simple repo with a Jenkinsfile and a README:

      4. Switch over to Jenkins, launch Blue Ocean, and click the "New Pipeline" button.

      5. Select your Bitbucket server (or add it, if it's not already there).

      6. Click "Next." Notice that the only way forward is to select a Project, and the private repo you created in steps 2-3 above doesn't live inside of a project. Meaning, there's no way to get Blue Ocean to see it.

        Attachments

          Issue Links

            Activity

            Hide
            vivek Vivek Pandey added a comment -

            As stated in description of issue, personal repos are not handled for bitbucket server. Its bit obscure to create such repos but agreed we should be able to handle it. I changed the issue title to say its for 'bitbucket server'.

            Show
            vivek Vivek Pandey added a comment - As stated in description of issue, personal repos are not handled for bitbucket server. Its bit obscure to create such repos but agreed we should be able to handle it. I changed the issue title to say its for 'bitbucket server'.
            Hide
            jamesdumay James Dumay added a comment -

            Will be released in 1.3

            Show
            jamesdumay James Dumay added a comment - Will be released in 1.3

              People

              • Assignee:
                vivek Vivek Pandey
                Reporter:
                kshultz Karl Shultz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: