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,456,615
Community Members
 
Community Events
176
Community Groups

Posting JSON payload to Bamboo queue service

Hi all.

I have a service X which - upon completion - could fire a webhook URL, thereby posting a JSON payload.

I would like to maintain the queue service REST URL (with a specific build key) as webhook and do something with the provided payload in the triggered build.

Thanks to this thread, I am aware of how one could send specific values to defined variables in the build, similar to e.g.

curl -X POST --user my-api-user:my-api-password --data 'bamboo.some_variable=some_value' 'https://my-buildserver.com/bamboo/rest/api/latest/queue/SOMEBUILD?os_authType=basic'

but can I also access the raw JSON somehow, e.g.

curl -X POST --user my-api-user:my-api-password --data '{"service_result":"bla"}' 'https://my-buildserver.com/bamboo/rest/api/latest/queue/SOMEBUILD?os_authType=basic'

The documentation says "No POST data required", but what if it's provided nonetheless? Is it ignored, or somehow accessible?

Thanks for any insight,

Harald

1 answer

As far as I know there is no way to pass and access a JSON payload.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events