简体   繁体   中英

Start trigger Jenkins Bitbucket Hook

Hi I have a problem setting bitbucket hook in order to start a Jenkins trigger. I installed Jenkins on my local machine ad I use ngrok to create a unique url. In my bitbucket settings' project page I configured a webhooks in this way

http://myngrokurl/bitbucket-hook/

In my Jenkins project, under settings I flagged

Build when a change is pushed to BitBucket

But when I push on master branch I see the bitbucket-hook POST in my ngrok console but jenkins doesn't fire. There is something wrong in my settings?

First of all, you need to verify the link http://myngrokurl/bitbucket-hook/ if it's accessible in a different network, for example, you're using Bitbucket Cloud

And you may try to enable Build Triggers -> Poll SCM in Jenkins project

Noticed that there is a view request link and allows you to enable history collection, you may want to try out this option and see if the any code push triggers a webhook call Discalimer: I never tried this 'view request' personally, because my configuration with webhook link and 'Build when a change is pushed to BitBucket' and 'Poll SCM' combination already works. But I thought this feature may help you to investigate and find out the root cause quickly

我使用通用webhook Trigger插件解决了我的问题https://wiki.jenkins.io/display/JENKINS/Generic+Webhook+Trigger+Plugin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM