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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Edited

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

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

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.

Tested like mentioned below.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,821 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you