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

Posting JSON payload to Bamboo queue service

Harald Kuersten August 24, 2018

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

0 votes
Arun_Thundyill_Saseendran
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.
August 27, 2018

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

Atlassian Community Events