Connect to Bitbucket database from bitbucket plugin

Venkata Nagarjuna Dondapati May 10, 2017

Hi,

I have an instance of Bitbucket which has an Oracle database. I am creating a plugin where I need to use the database tables directly (not the AO tables). Is there any way to achive this?

Do I need to use a normal JPA framework inside the plugin to fetch the details? If yes, how do I get the database credentials from the APIs without the need to store them inside the code?

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2022

Hi,

I know it's been some time since you posted this but I hope my reply might help others in the future so here it is.

 

Plugins cannot access the database directly.

 

What they can then however is to use the available methods (https://developer.atlassian.com/server/framework/atlassian-sdk/atlassian-javadoc/) to read the information stored by a Bitbucket installation.

 

To store data instead, you'll need to rely on the Active Objects framework (https://developer.atlassian.com/server/framework/atlassian-sdk/active-objects).

 

Caterina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events