trigger jenkins build from bitbucket

18 views
Skip to first unread message

Zack Snyder

unread,
Apr 25, 2018, 11:01:12 AM4/25/18
to jenkins...@googlegroups.com
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

James Telfer

unread,
Apr 27, 2018, 8:13:58 AM4/27/18
to Jenkins Users
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.
Reply all
Reply to author
Forward
0 new messages