Search code examples
gitgitlabbitbucket

Assign Bitbucket Server to Gitlab


I have Gitlab account free trial i want to connect gitlab with bitbucket To migrate from Bitbucket To Gitlab .

When i Choose > New project > Import project > Bitbucket > bitbucket.org index will appear to enter Email and Password , But i have Bitbucket installed my Server i want to assign my Bbitbucket server URL to Gitlab to Login from gitlab and began to migrate .

I can not log in to Bitbucket.org i want to log in with my bitbucket in my server username and password .

How can assign my Bitbucket server URL to gitlab to login from gitlab ?


Solution

  • The BitBucket importer currently only works with BitBucket's cloud offering (bitbucket.org) and does not work with BitBucket Server.

    This is no longer the case, since GitLab 11.2 (August 22nd, 2018)

    See "Importer for Bitbucket Server":

    While GitLab has supported importing projects from Bitbucket Cloud using OAuth authentication for quite some time, such an integration with the self-hosted Bitbucket Server wasn’t available. Until now.

    With GitLab 11.2, it is now possible to import your projects from Bitbucket Server to GitLab with minimal effort. All that is required is to provide the server URL and your credentials. GitLab then lists all your BitBucket Server repositories, ready for import.

    https://about.gitlab.com/images/11_2/bitbucket-server-import.png

    See also, with GitLab 17.0 (May 2024): "Import from Bitbucket Cloud by using REST API".