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

How to achieve continuous release cycle with Bamboo for Atlassian Plugin development?

Robhit Saxena
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2019

Hi All,

I am developing Atlassian plugins and can package and deploy the plugins manually by using the atlas-* commands.

However, I would like to automate this whole process of packaging and deployment as a release cycle using Bamboo.

I would like to achieve the following:

  1. Using Maven task in the Bamboo to package my plugin. (This I am currently doing by using a script task and using the atlas-package command inside of it)
  2. Using the maven task (if possible) to auto-increment the snapshot version of the build artifact. (Currently, I am doing this by using a script task and using the command “atlas-mvn clean package -DbambooBuildNumber=${bamboo.buildNumber}”
  3. Using Bamboo deployment to deploy the generated artifact to the target servers and also to achieve the auto-increment of the maven version from the snapshot to the major for example, 2.0

I am kinda lost on how to achieve this and need help to proceed further.

Thanks in advance!

1 answer

1 accepted

1 vote
Answer accepted
Foong
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 22, 2019

Hi Robhit,

Using Maven task in the Bamboo to package my plugin. (This I am currently doing by using a script task and using the atlas-package command inside of it)

Use Capability to add a Maven executable with atlas-mvn

Using the maven task (if possible) to auto-increment the snapshot version of the build artifact. (Currently, I am doing this by using a script task and using the command “atlas-mvn clean package -DbambooBuildNumber=${bamboo.buildNumber}”

Maven task can be configured with "clean package -DbambooBuildNumber=${bamboo.buildNumber}" as the Goal 

Using Bamboo deployment to deploy the generated artifact to the target servers

Try this add-on Continuous Plugin Deployment for Bamboo

and also to achieve the auto-increment of the maven version from the snapshot to the major for example, 2.0

Try this add-on Variable tasks for Bamboo to get the maven version and increment it and update pom.xml with command or Maven task like 

mvn versions:set -DnewVersion=${bamboo.maven.version.extracted.incremented}

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events