Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The bitbucket webhook returns 400 for the requests to Bamboo build

Paridhi.Jain December 23, 2019

Hi,

I'm trying to trigger a build plan created on Bamboo, from Bitbucket webhook. The webhook sends a request for build as soon as the master branch is updated. 

I referred to the IPs given in the following document: 

https://bitbucket.org/blog/new-ip-addresses-bitbucket-cloud

for configuring trigger in Bamboo.

It worked for few requests and then it started failing with code 400. Upon checking the webhook requests  found that requests are originated from some other IP-

"Build request for plan [XXXX - XXXX] originated from 18.234.32.228,172.31.11.67,127.0.0.1 which is not an allowed address"

Not only this, I checked other failed requests and found different IPs which include following:

18.234.32.224,172.31.1.19,127.0.0.1
18.234.32.227,172.31.36.113,127.0.0.1

I'm doing this for the first time. Could anyone help me in this regard? Am I not doing it right? Do I need to specify the IPs in some other way. Any help in this regard is appreciated.

 

Thanks in anticipation

 

 

1 answer

0 votes
Daniil Penkin
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 23, 2019

Hello @Paridhi.Jain,

Both 18.234.32.224 and 18.234.32.227 are within the 18.234.32.128/25 subnet listed in the blog post you mentioned, so I believe there's some misconfiguration in Bamboo.

However, you should consider this page as the source of truth regarding Bitbucket IPs. Specifically:

Outbound traffic will come from Atlassian's public IP range in addition to the below addresses:

18.205.93.0/25
18.234.32.128/25
13.52.5.0/25

Hope this helps.

Cheers,
Daniil 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events