-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Blocker
-
Component/s: bitbucket-plugin
-
None
I have a Bitbucket repository set with a webhook to trigger Jenkins builds when some change ocur in the repository.
The webhook is pointing to JENKINS_URL/bitbucket-hook/ (with the trailing slash) In the build, the job has the same SCM git url as the repository. It has also checked the option "Build when a change is pushed to BitBucket" and the option "Poll SCM" but with no period specified (I read in StackOverflow this is needed). I've also whitelisted the Bitbucket IP ranges in the server. However whenever a push is sent from Bitbucket, with a 200 response code, Jenkins seems to ignore it, leaving absolutely no logs.
If I try making a POST request to JENKINS_URL/bitbucket-hook/ with the same JSON as Bitbucket would send, plus some other fields ("absolute_url", "canon_url", "user") in the payload it works and triggers the build with a log saying something like "Processing old POST service payload".
I am using Jenkins Bitbucket plugin version 1.1.5. It seems like something is missing but I don't know what, I've followed every step in the documentation.