Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

47 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you