To integrate Flow Enterprise Server with BitBucket Cloud, you must configure an OAuth consumer in BitBucket Cloud. Consider configuring the OAuth consumer using a service account with access to all teams and repositories in the organizations you want to show data for in Flow.
-
Create an OAuth consumer in BitBucket Cloud (external site, opens in new tab). Include the following information:
-
Name: This should be an easily recognizable name for your Flow Enterprise Server instance.
-
Description: This can contain information about Flow Enterprise Server.
-
Callback URL: This is the URL that BitBucket will redirect the user browser to after OAuth authentication is performed. This should look something like
https://<your Flow Enterprise hostname>/accounts/complete/bitbucket-oauth2/
. For example, if your Flow Enterprise Server instance is atflow.mycompany.com
, you would enterhttps://flow.mycompany.com/accounts/complete/bitbucket-oauth2/
. -
URL: This is the root URL of your Flow Enterprise Server instance. For example, https://flow.mycompany.com.
-
-
Once your application is created, copy the Key and Secret value for your consumer.
-
Add this key and secret pair to the KOTS admin console for Flow Enterprise Server. Learn how to configure Flow Enterprise Server.
-
Once this is complete, follow the OAuth connection instructions in the BitBucket Cloud setup article to complete your connection.
Note: Once your OAuth consumer is authorized in both BitBucket Cloud and the KOTS admin console, managing your BitBucket Cloud integration is identical in both Flow Cloud and Flow Enterprise Server.