Last updated Dec 8, 2017

Migrating your plugins to dynamic plugins for Bamboo 3.3

In version 3.3, Bamboo now supports plugin installation with Atlassian Plugins 2.0 via the Plugin Manager. This guide shows you how to migrate to update your existing Plugins to support Plugins 2.0.Contents

Updating your existing Plugin

Update the Bamboo product and data version

In your projects pom.xml make sure your plugin is using version 3.3 and data version 3.2.2

Example:

1
2
<bamboo.version>3.3</bamboo.version>
<bamboo.data.version>3.2.2</bamboo.data.version>

Remove the shade plugin declaration from pom.xml

Plugins 2.0 plugins automatically include all non-Bamboo dependencies in the plugin jar when packaged. In previous versions of Bamboo it was necessary to use the Maven Shade Plugin to include dependencies. This is no longer necessary.

Section to remove:

1
2
<!--
  If you have dependencies that ship with your plugin you should use the shade plugin to include them in the final jar
  Uncomment the section below and add any jars you want to include by adding <include>groupId:artifactId</include> between the artifactSet elements.
  See http://atlss.in/mhgZm6 for more information
-->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-shade-plugin</artifactId>
    <version>1.4</version>
    <executions>
       <execution>
         <phase>package</phase>
         <goals>
           <goal>shade</goal>
         </goals>
         <!--
         <configuration>
           <artifactSet>
              <includes>
                <include>com.mygroupid:my-artifact-id</include>
              </includes>
            </artifactSet>
          </configuration>
          -->
       </execution>
    </executions>
</plugin>

Update atlassian-plugin.xml with to use Plugins 2.0

In the atlassian-plugin.xml change the plugins-version attribute value to 2.

Example:

1
2
<atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2">

Test the Plugin with Bamboo 3.3

After migrating Atlassian recommends testing the Plugin on the latest Bamboo 3.3 point release to ensure compatibility.

We suggest that you:

Notes about the Plugin Exchange and Plugin Manager

To allow installation via the Atlassian Plugin Manager within Bamboo you will need to:

  1. Mark your plugin as "Deployable"
  2. Create a new version of your plugin that supports a minimum of Bamboo 3.3 and set the Plugin System version to TWO.

Rate this page: