Configure Bamboo for Android Gradle based Project.

I'm trying to setup Bamboo for my Gradle build system based Android Project. I'm done with rest of all setup upto project repository path. I can see there is no direct support available in Add Task section to build it for Gradle but there is option to write script.

Any have suggestion what I need to configure here.

1 answer

Written by Oliver in another question: 

 

Quick Setup Guide


Use this script (e.g. for Gradle 2.5):

mkdir -p ~/mnt/bamboo-ebs/gradle && cd $_

wget https://services.gradle.org/distributions/gradle-2.5-bin.zip

unzip gradle-2.5-bin.zip

Then take a new snapshot from the EBS volume and use this in your elastic agent.

Afterwards add "Executable Capability" to your image configuration with this as path:

/mnt/bamboo-ebs/gradle/bin/gradle

Now you can use Gradle as Command in Build plans and add the task name as argument - e.g. "build".

 

https://answers.atlassian.com/questions/251384

Gradle 2.5 already installed in /usr/bin/gradle directory.  I didn't get what you mean after "Then take a new snapshot ....". Please update.

The snapshot is for elastic bamboo setup so it's not needed for this case. 

So in your case if you have graldle installed do the following: 

the settings wheel > agents > press the agent name

page shows up with the agents capabilities

Press Add Executable

Type is Command

Label is for example Gradle

path /usr/bin/gradle

 

Now you can set up the command gradle in any build phase. 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,814 views 0 6
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