ip1981 / bbprb

Bitbucket Pull Request Builder Plugin for Jenkins
Other
8 stars 4 forks source link

Getting 400 status code when firing the webhook #15

Open luciansvnc opened 4 years ago

luciansvnc commented 4 years ago

Is this plugin compatible with Bitbucket Server? I configured the webhook but every time it is fired I am getting 400 status code. Thank you!

ip1981 commented 4 years ago

I have never used with the server, only with the cloud Bitbucket. It might help if you had some logs!

luciansvnc commented 4 years ago

I managed to inspect the Jenkins logs. I am getting: "Mar 27, 2020 5:23:33 PM WARNING org.jenkinsci.plugins.bbprb.BitbucketHookReceiver doIndex Bad user agent: Atlassian HttpClient 1.1.0 / Bitbucket-5.15.0 (5015000) / Default, expected Bitbucket-Webhooks/2.0". It looks like a validation is failing from "doIndex" method.

ip1981 commented 4 years ago

I think I can remove that check. Hold on :)

luciansvnc commented 4 years ago

Thank you!

ip1981 commented 4 years ago

Check this out => https://github.com/ip1981/bbprb/commit/279c4e5ad1952478221ab7be883d750fbfe38c9c

luciansvnc commented 4 years ago

Thanks! The webhook fires successfully now. I will continue the setup and get back with a feedback for Bitbucket Server.