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.