Bitbucker server integration with drone

In installation guide on link. Part " Bitbucket OAuth application" it is quiet confusing considering that there is no option in bitbucket settings > Oauth > Add consumer. That scenario is only available in BItbucket Cloud installation. I am new at this so please help me I need to integrate Drone with BitBucket.

it is quiet confusing considering that there is no option in bitbucket settings > Oauth > Add consumer

I do not see what you are referring to in the Bitbucket Server documentation. The documentation does not make any mention of “Add Consumer”.

You need to go to the settings page and “Create New Link” from the “Application Links” page.

https://docs.drone.io/installation/providers/bitbucket-server/

Because this is how you create Oauth in Bitbucket Could. I need to integrate Bitbucket server with Drone and I need Oauth authentication to integrate them , but in Bitbucket server I can not add Ouath authentication. I need to know Can I even integrate Bitbucker server 6.7.2. with Drone 1.3.1. ??
Thank you on your fast reply

Hi Jasmina,

If you want to setup Drone with Bitbucket Server (self-hosted Bitbucket) you need to follow the Bitbucket Server installation instructions. Bitbucket Cloud is a completely different product (even though the name is similar) and the configuration is completely different.

Please make sure you are following these instructions, and not the Bitbucket Cloud instructions:
https://docs.drone.io/installation/providers/bitbucket-server/

Hi Bradry, I Agree with you Bitbucker server and Bitbucket Cloud are indeed two different products. That is why it is hard for me to find solution o this matter. I tried to follow these instructions but in Step 1 - Preparation there is this step :

Create an OAuth Application
Create a Bitbucket OAuth application. The Consumer ID and Private Key are used to authorize access to Bitbucket resources. The Bitbucket application creation process is convoluted and error prone. Please bear with us.
Navigate the administrator panel and click the Application Links settings page. Enter your Drone server URL and click Create New Link .

in Bitbucket server you can not create OAuth application. At least I couldn’t find solution. Sorry I am new at this maybe my questions are to basic, but please bear with me and I appreciate your help so much. As I can see it without this step you can not integrate these two softwares.
Best Regards,

You create an application link following these instructions:

Navigate the administrator panel and click the Application Links settings page. Enter your Drone server URL and click Create New Link .

The corresponding screenshots should show you what the UI looks like.

Yes I know that from these instructions, but the problem is how to fill in customer key and hared secret from the following photo from instruction :


how to generate it for bitbucket to understand it.

the next step is to click “Continue”

Once the application is created it needs to be edited so that we can configure the Incoming Authentication .

so this means once you create the application, you need to go back and edit it. The screenshot in the UI should show you what the edit screen looks like, with sample values.

Well I can not click continue if I don’t have Oauth key that I need to generete in bitbucket server, so that they can autentificate each other, that is my confusion. Only to insert random oauthkey and enter ?

it would be very helpful if you could provide screenshots that show why you cannot hit continue. Is there some sort of error? Because your screenshot looks fine to me.

Hi,
I figure it out, I haven’t realized that it in field custom key you need to literately write “Oauthkey”
Thank you on your help, it works now.

BR,