Bamboo build time

Hey everybody, any hints on how we can reduce the build time? we are running a java application in bamboo and the build already takes > 40minutes.. this is insane for testing.. any tips what we can look at?

2 answers

Hi,

what kind of java build tool are you using? Maven? Gradle? Are there any tests performed?

Hey yes we use MAVEN and we run tests. The whole build process on our local machines (which are not particualry strong) takes about 5-7 minutes. on bamboo it takes > 30 minutes.

its unit tests we run

Are you using the same Maven version on both local machine and Bamboo?

1. Try to use MAVEN_OPTS to increase allocated memory for the maven jvm process.

Bamboo Maven task > Envrionment Variables :
Something like:
MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"

2. Maven 3.x has the capability to perform parallel builds:
mvn -T 4 clean install #run your build with 4 threads
mvn -T 2C clean install #build your project with 2 threads per core

Have a look at https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,075 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot