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,359,802
Community Members
 
Community Events
168
Community Groups

Remote events not pushed from Bitbucket to Bamboo

I am trying to link Bamboo and Bitbucket in order to get Bamboo react on pull requests.

I have:

  • Bitbucket 6.10.0 self-hosted
  • Bamboo 6.10.6 self-hosted

I am checking the "System information" page in Bamboo to see if I receive any events from Bitbucket. Even though "Remote events status=working" "Last received event" column remains empty. I am trying to trigger some event by creating and editing pull requests.

Observations:

  • I can see Bitbucket is periodically querying GET /rest/remote-event-consumer/1/capabilities of Bamboo 
  • Bamboo returns capabilities like "stash-pullrequest-opened-remote-event" or "stash-pullrequest-updated-remote-event"

What could be missing? Why does Bamboo not receive any events? I have re-established the links between the applications. Nothing has changed.

2 answers

OK. I have some more info:

The Bamboo endpoint GET /rest/capabilities returns several links. My Bamboo is hosted with SSL and all the links have https prefix. This is OK.

However the endpoint GET /rest/remote-event-consumer/1/capabilities returns all links with http. This makes Bitbucket complain:

java.lang.IllegalArgumentException: Request url 'http://bamboo.my.org/rest/remote-event-consumer/latest/events/stash-branch-changed-remote-event' isn't in the same origin as the rpc url 'https://bamboo.my.org'

Any Idea how to fix the URLs in the GET /rest/remote-event-consumer/1/capabilities response?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

301 views 0 7
Read article

Atlassian Community Events