Connecting TeamCity On-premises to Bitbucket Cloud
I am having difficulties creating a connection between our on-premises installation of TeamCity and Bitbucket Cloud.
I have followed the steps outlined in the documentation for configuring this:
- In TeamCity I go to Connections on the project, click Add Connection, select Bitbucket Cloud, and then copy the URL (http://(server_name)) and Callback URL (http://(server_name)/oauth/bitbucket/) values provided by TC into a new OAuth Consumer in BB Cloud. I set the consumer permissions as specified.
- When I try to save these settings, it says that for HTTP protocols, the callback URL must be a loopback address. I can only get the OAuth Consumer to save by replacing the server name with localhost.
- I copy the Key and Secret values from the OAuth Consumer back to TC, and use these to finish setting up the connection.
- I go to VCS Auth Tokens, and try to generate a new token for the Bitbucket Cloud connection.
- When I click Acquire, it opens a pop-up window which directs to Bitbucket Cloud, but then says that the redirect uri is invalid and the integration is misconfigured.
I have looked through other forum posts for this but cannot seem to find a solution for the problem. Any suggestions as to what I might be doing wrong or what else we might need to configure would be appreicated.
Please sign in to leave a comment.