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

Remote events not pushed from Bitbucket to Bamboo

Maciej Zientarski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 6, 2021

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

0 votes
Gonchik Tsymzhitov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 10, 2021
0 votes
Maciej Zientarski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 7, 2021

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

Atlassian Community Events