Not a direct answer to your question, but have you considered using the Bitbucket Branch Source Plugin (https://plugins.jenkins.io/cloudbees-bitbucket-branch-source)? This gives you multibranch pipelines and integrates with Bitbucket, creating those webhooks automatically for you when you create a job.
I've currently got Bitbucket 5.9.0 working with this across a number of repos. On Wednesday, 25 April 2018 16:01:12 UTC+1, Zack Snyder wrote: > > Hello there, > > I want to execute a jenkins build when I push a commit to bitbucket. > For unkown reason, it doesnt work. > > I use a multibranch pipeline (setup via blue ocean) > I setup a webhook (native one) in bitbucket (I use the latest version of > bitbucket 5.9.1) to the URL is : http://jenkins/bitbucket-hook/ (it is > bitbucket server) There the status is active and I get a return code of 200 > Is there some kind of guideline I have to follow in order to set it up > properly? > > > Regards, > Zack > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9e887596-393a-404f-ace4-25754f42f8c0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.