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

How to run gradle build assemble task in bamboo and deploy the war file generated in a remote server

satya23bh February 27, 2018

I have a java application which is built with gradle and it generates a war file upon execution. I want to do all the same things in bamboo but can't find a gradle tasks in bamboo. 

2 answers

3 votes
Grzegorz Lewandowski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 27, 2018

Why don't you use Gradle wrapper for that purpose ?

 

Create a ScriptTask and execute ```./gradlew build```.

1 vote
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 28, 2018

While Grzegorz' answer is sound (+1) and will probably cover many use cases, you might also want to check out the (commercial) Groovy Tasks for Bamboo app which provides "Groovy, Gradle, Gradle Wrapper, Gant, and GINT tasks for Bamboo".

satya23bh March 1, 2018

I have installed the groovy add-on and selected the Gradle task but I am clueless what parameters should be filled the these fields (refer attachment). I am running bamboo in localhost:8085. Screenshot (216).png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events