Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,369,460
Community Members
 
Community Events
168
Community Groups

How to invoke a Rest API from BAMBOO TASK?

Edited

Hi, I'm new to Bamboo tool and am from JAVA developer.

Can someone please help on the below...

As per my requirement, I need to create a Bamboo task and that task should invoke inhosue Rest API(http://host:port/api/......) (ZUUL API) to perform some business logic.

So, Where we have to mention a API URL in TASK and How Bomboo will invoke my API ?

Any way is there to achieve this? 

 

Thanks,

Mareesh

1 answer

You can use the "script" task and use curl or something similar to make the REST call. You can also have a custom script on a remote server and execute it from Bamboo.

@Jobin Kuruvilla _Adaptavist_  Thanks..., Now as per my requirement i'm invoking a JOB from my java code and in that job have configured one of script task that task is invoking one of my rest API. Now that rest API is post call and it is expecting a input. Right now i have static values but i need to send request object from my java code.

How can i send a request object to bamboo to execute that particular task? 

Maybe you can define them as build variables and set the variables while invoking the build?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events