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

How to install Stash plugin found on Bitbucket?

Dominique So April 1, 2015

I'm having trouble installing one of the plugins found on Bitbucket (stash-example-hook-protect-ref) for example. I downloaded the repository, unzipped, and packaged the files up in a .jar file, and tried to install on Stash, but got a "could not find handler..." error. Do I need to change values in the pom.xml and atlassian-plugin.xml files? If so, what? Does the .jar file include everything in the unzipped directory?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
TimP
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 1, 2015

Hi Dominique,

It's not just a matter of compressing the files into a JAR, you'll need to compile the sources and package them up in the Atlassian plugin format. The easiest way to do this is cloning the source repository, installing the SDK and running the atlas-package command, which will write the JAR file into the /target directory inside the repository.

You can see the SDK in action (and learn a little bit about plugin structure) in this video tutorial: https://developer.atlassian.com/blog/2015/01/beer-o-clock-stash-plugin-tutorial/

cheers,

Tim

Dominique So April 1, 2015

I've tried this, but with my network, I cannot connect to the Maven repositories, so I cannot run any atlas commands from the Atlassian SDK at the moment. Is there another way around this? Are there other ways aside from using the Atlassian SDK?

TAGS
AUG Leaders

Atlassian Community Events