Jenkins Build is not triggered with bit bucket web hook

Viewed 1233

Trying to create the webhook in Bit-bucket for the multi-branch pipeline. I wanted to trigger the build whenever changes are pushed to bit-bucket. It's working for a simple and pipeline project, build is automatically triggered whenever a change is pushed. But it's not working for the multi-branch pipeline. I can see the request in the ngrok console and on the bitbucket webhook console with status 200.

This is my webhook URL http://*****.ngrok.io/bitbucket-hook/.

FYI: I m using ngrok tool to publish my local Jenkins to be accessible publicly.

Any help will be greatly appreciated! Thanks.

2 Answers

This worked for me giving the URL as https://<Jenkins url>/bitbucket-scmsource-hook/notify?server_url=https://<bitbucketUrl>

In Bit-bucket you just replace this one -- http://*****.ngrok.io/bitbucket-scmsource-hook/notify

Related