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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,457,022
Community Members
 
Community Events
176
Community Groups

Bitbucket webhook won't send a request to Jenkins

Hi, 

I am configuring Bitbucket to trigger a job on Jenkins. It is a trivial process and I tested it on test Jenkins server and works fine. However, it cannot send it to my company server. I have configured my webhook as "https://company-jenkins-url/bitbucket-hook/". All I get is info below and obviously the job is not triggered. 

In case, Jenkins firewall is denying my hook, I have added Bitbucket whitelist of IPs as well. I don't even get a 403 error. Not sure what is wrong. Your help is appreciated. Thanks

tempsnip.png

2 answers

This is a long shot, but here it goes: I had a similar problem for months. The Infrastructure guys assured me the firewall was configured correctly, and that Jenkins could be reached. But Bitbucket kept claiming Network error, and Jenkins acted as if nothing happened. I gave up.

As part of upgrading the version of Jenkins (and Java) we run I had to remove the use of `--httpsPrivateKey` and `--httpsCertificate` since they had been deprecated for a while and finally removed, and replace them with `--httpsKeyStore`. I created a PKCS12 keystore which contained just the same cert as we had used. After that the webooks suddenly started working... Makes little sense to me, but worth a shot.

0 votes

Hi @Elnur Mammadov and welcome to the community.

Could you please double-check if the IPs you have whitelisted are the following?

These are the IPs that need to be whitelisted for webhooks specifically.

If you have whitelisted all of these ranges and still seeing errors, could you please let me know:
1) Whether you are an admin of the repo in question? (I assume you are since you have access to its Webhooks page)
2) Let me know the name of the repo, but masked to protect your privacy, e.g. ***a**p***. Just two letters that would help me identify the repo from the ones you have admin access to. I can then check our internal webhooks logs for any additional info.
3) Please also let me if you have made a most recent attempt to trigger the webhook and when was that, so I can narrow the search.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events