jenkinsci / bitbucket-push-and-pull-request-plugin

Plugin for Jenkins v2.138.2 or later, that triggers job builds on Bitbucket's push and pull request events.
https://plugins.jenkins.io/bitbucket-push-and-pull-request
MIT License
46 stars 50 forks source link

Webhook not triggering job #301

Open perezmark opened 10 months ago

perezmark commented 10 months ago

In my repo Repository hooks http://xxxxxx/bitbucket-hook/ with push enabled and pr approved

image

image

image

image

plugin version: 2.8.3 jenkins version: Jenkins 2.361.2

alifiroozi80 commented 9 months ago

Hello @perezmark, I am facing the same issue... Do you have any updates or suggestions?

cartsofware commented 9 months ago

we also are facing the same issue the logs are the same as @alifiroozi80 could someone help us please ?

alifiroozi80 commented 9 months ago

Hello @cartsofware I managed to solve the problem. I realized that I have the BitBucket Plugin as well, and I installed the BitBucket Plugin during installation (Not from the Plugin Dashboard) Somehow, they conflict with each other. So, I deleted the BitBucket and BitBucket PR plugins completely, restarted Jenkins, and this time, installed both of them through Plugins dashboards (Not during installation) And now both of them are working correctly.


P.S Note that if you want to keep both plugins, follow this structure:

cartsofware commented 9 months ago

hi @alifiroozi80 thank you for your feedback. I installed only BB PR plugin and I have no log in jenkins log. So I remove everything and set a webhook in bitbucket using this format

https://<user>:<token>@<jenkinsurl>/job/<jobname>/build

so I don't need any plugin anymore

alifiroozi80 commented 8 months ago

Hello @cartsofware They have released a version of plugin 3.0 a day ago. I guess with that upgrade, it should work.