This page is only for BitBucket Cloud (bitbucket.org). If you have an on-premise version of BitBucket Data Center please refer to the docs here.
First, you'll need to create a BitBucket "OAuth consumer" for your organisation.
Creating a BitBucket OAuth Consumer
Section titled “Creating a BitBucket OAuth Consumer”From BitBucket, click on your profile picture and select your workspace:
Then "Settings":
Then "OAuth consumers":
And create a new consumer.
Give the app a name. The callback URL is the important bit. It needs to be in this form:
[your-nx-cloud-url]/auth-callback
# for examplehttps://my.nx-enterprise.url:8080/auth-callback
Important: Ensure there is no backslash at the end of the "Callback URL" (i.e. it matches the above pattern)
Ensure you grant it the account:read
and account:email
scopes:
Save your changes.
Once you create, keep a note of the Key and the Secret:
Connect Your Nx Cloud Installation to Your BitBucket OAuth Consumer
Section titled “Connect Your Nx Cloud Installation to Your BitBucket OAuth Consumer”Contact your developer productivity engineer to connect your Nx Cloud instance to the newly created BitBucket OAuth consumer.