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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,553,818
Community Members
 
Community Events
184
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

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 22, 2019

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? 

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Feb 28, 2019

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
AUG Leaders

Atlassian Community Events