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

Bamboo Data Center 8.1 is now available

G’day Bamboo customers, Bamboo DC 8.1 is now available with it the following features and programs: SAML 2.0, OpenID Connect, and Crowd SSO In order to help admins with a simplified user manage...

167 views 0 4
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