Rate this page:
Stash has been rebranded. For versions 4.0 and later it is known as Bitbucket Server. If you wish to create a plugin for a version 4.0 or later, please see atlas-create-bitbucket-plugin for the correct command. Stash commands will be deprecated with the next major version release for AMPS.
This page describes the shell script , part of the Atlassian Plugin SDK.
There is a specific version of this shell script for each Atlassian application. The shell script described on this page is for Stash.
- Prompts you for plugin module type and related details, then creates an example of a Stash plugin module that you can adapt to suit your own plugin's needs. (Runs .) Passes all parameters straight through to Maven.
The script will automatically add the changes to your and generate the appropriate Java code.
This shell script is a Maven wrapper script. All parameters are passed straight through to Maven.
The shell script will display some help text if you enter one of the following as the first argument:
atlas-create-stash-plugin-module -? atlas-create-stash-plugin-module -help
Let's assume you want to add a new plugin module to your existing Stash plugin.
Create your plugin () and install it into the application () as usual.
Go to the root directory for your plugin (where the is located).
Run this command:
Follow the prompts to specify the type of plugin module that you want, and further information required to create the basic module. For example, let's assume you want to create a web item:
The script added the required module to my :
<web-item name="Charlie Option" i18n-name-key="charlie-option.name" key="charlie-option" section="header.global.primary" weight="1000"> <description key="charlie-option.description">The Charlie Option Plugin</description> <label key="charlie-option.label"></label> <link linkId="charlie-option-link">http://developer.atlassian.com</link> </web-item>
Where relevant, the script will add the Java classes to your plugin's .java file too.
Rate this page: