Forums

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

Jenkins post webhook fails to register with 401 response

Stefan_Lekic
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!
March 16, 2020

I am using Bitbucket branch source plugin and I have enabled automatic webhook registration. Unfortunately, jobs keep failing to register webhooks with 401 http error code.

Is there any configuration on Bitbucket side that I may have missed? 

1 answer

1 accepted

0 votes
Answer accepted
Jon Starbird
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 16, 2020

You may have already checked this but if you're using BitBucket Cloud you need to make sure BitBucket can talk to your Jenkins server.  Router, Firewall, etc. allowing access from BitBucket Cloud servers. There is whitelist of IP's available.

https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html

Also, on the BitBucket side, the user Jenkins connects as needs Admin privileges on the repo. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.7.3
TAGS
AUG Leaders

Atlassian Community Events