How to add support for Bitbucket Server to an existing Bitbucket Cloud Add-on?

And does Bitbucket Server support installing add-ons/support add-on API?

You can create add-ons for Bitbucket Server using the P2 plugin framework (https://developer.atlassian.com/server/framework/atlassian-sdk/plugin-framework/). Depending on how modular you’ve setup your cloud app, you will probably need to rewrite/duplicate a (large) part of your code.

Unfortunately, the Bitbucket API also differs between Bitbucket Server and Bitbucket Cloud, but you should be able to navigate through these differences more easily compared to combining support for both Server & Cloud in a single code base.

1 Like

Got it, thanks! I’ll write extra code for Bitbucket Server then.