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,296,856
Community Members
 
Community Events
165
Community Groups

Accessing payload of a request which triggered Bamboo build, from build's Script task

Edited

I've managed to configure manual build trigger from GitHub's webhook, on Pull Request creation by providing following Payload URL:

`http://username:password@bamboo-addreess.com/rest/api/latest/queue/PLAN_ID?os_authType=basic`

And builds are now being triggered upon Pull Request Creation.

Now I need to access a data which is being sent by GitHub hook to Bamboo in a triggered plan's Script task. This is needed to get a pull-request number and "sha" identifier, to properly communicate with `GitHub Status API` withing those scripts.

Is there a way to access this payload data?

If not, maybe you have an information on how to attach this data to GitHub's WebHook URL without any middleware?

1 answer

I have the same exact question and getting the latest pull request into my build plan is the only missing piece for my scenario.

looking for this piece too

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...

952 views 3 8
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