You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
As far as I know there is no way to pass and access a JSON payload.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.