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 achieve continuous release cycle with Bamboo for Atlassian Plugin development?

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

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
Community showcase
Published in Bamboo

Bamboo Data Center - Early Access Program 2

We’re preparing for Bamboo 8.0, which will be our first Data Center release. To make sure our app vendors and customers with written in-house apps are prepared, we’re launching Bamboo 8.0 Early Acces...

103 views 0 7
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