Our organization is bound to BitBucket and we migrated to GitHub, looking for best practices

Hello,
Our organization migrated from Bitbucket to Github. Our Organization in SonarCloud is bound to Bitbucket and we would like to change that to Github. After looking at the interface and reading some documentation, it looks like the only option I have to to create a brand new organization and bind that to GitHub. Is that true or did I miss something. Please advise.
Brian

1 Like

Migrating an org from Bitbucket → GitHub is actually possible if you follow a few, not particularly intuitive steps:

  1. Log in to SonarQube Cloud using your GitHub account, at least once
  2. Log back into SonarQube Cloud with Bitbucket
  3. While signed in with your Bitbucket-authenticated SonarQube Cloud account, add your GitHub user as an organization admin in SonarQube Cloud.
  4. Uninstall the SonarQube Cloud app from your Bitbucket workspace.
  5. Then, log into SonarQube Cloud using your GitHub account, install the SonarQube Cloud application at the organization level (Administration > Organization settings > Repository Binding), and follow the instructions to bind the organization to GitHub.
  6. Refresh all of your project bindings. For more details, refer to the official documentation on changing project binding.
  7. Remove the Bitbucket users from your organization
1 Like

Hi Colin,
Thanks for the details. I think I did it all correctly. One thing I noticed is that I have bound the organization to github repo, however, when i come back into that page it doesn’t look like it stuck. Does it take a while? Or is there some email that went out for verification that i am missing?
Thanks
Brian

Did you click Save?

I did, the issue was I wasn’t an owner in GitHub. Once that was resolved everything was fine. Thanks for the help!

Colin-
Just by chance I’m trying to do the same thing with my organization (move from Bitbucket to GitHub). I’m getting stuck at step 4. I don’t see a way to uninstall SonarQube Cloud (or any apps from our Bitbucket workspace even though I’m a Bitbucket workspace admin.

Can you help with that?

Hm. Maybe I’m not a workspace admin, maybe I’m just in an “admins” group.

I got access to the original Bitbucket workspace owner’s account and was able to remove the App from there.

Thanks!

2 Likes