Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to test plugin written for older bitbucket server version on latest version of server?

avsaditya January 26, 2021

Hello friends,

 

I have a plugin which was written(using SDK) for bitbucket server version 6.6.1.

Now we intend to upgrade our bitbucket server to the latest.

The compatibility check says that the state for this plugin after the server update is "Unknown", which is expected.

My query is that how to check if this app is compatible with the latest version of bitbucket server.

Is there a way to ensure that the plugin works before the upgrade?

Any help is highly appreciated.

 

Thanks and Regards

Aditya

3 answers

2 accepted

1 vote
Answer accepted
Maciej Adamczak
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 11, 2021

Hi @avsaditya, you can use the Atlassian SDK to change the Bitbucket versions:

https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-run/

 

atlas-run —-product bitbucket —-version 7.0.6 --DskipTests

It might be a good idea to run a "clean" command first before you change to a different major version: https://developer.atlassian.com/server/framework/atlassian-sdk/atlas-clean/

 

Maciej Adamczak

Atlassian Developer

0 votes
Answer accepted
avsaditya May 11, 2021

Tested it in the below two different ways:

1. Compile the sources with the latest/appropriate development SDK.

Test if it works as expected.

This might be tedious and require some fixing but is the fool proof way.

2.Download the plugin jar from the below path:

atlassian/application-data/bitbucket/shared/plugins/installed-plugins/

Request for an evaluation of the version you wish to upgrade to.

Load the jar directly and check if it works.

Easy to check but if the plugin fails for some reason, you still have to go back to step 1 and fix the errors.

0 votes
avsaditya May 11, 2021

Tested like mentioned below.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events