简体   繁体   English

Jenkins 和 BitBucket 网络钩子

[英]Jenkins and BitBucket Webhook

I am using Jenkins and BitBucket integrations.我正在使用Jenkins和 BitBucket 集成。 I want to trigger a build when a PR is created.我想在创建 PR 时触发构建。 I created a webhook on bitbucket it's returning 200 response but no build is getting triggered.我在 bitbucket 上创建了一个 webhook,它返回200响应,但没有触发构建。 I have enabled "Build when a change is pushed to BitBucket " option in the build configuration.我在构建配置中启用了“将更改推送到BitBucket构建”选项。

you can use Generic Webhook Trigger Plugin .您可以使用通用 Webhook 触发器插件 You can integrate this plug-in with bitbucket and it will give you payload which contains all the data regarding webhook which you need to process.您可以将此插件与 bitbucket 集成,它将为您提供有效负载,其中包含您需要处理的有关 webhook 的所有数据。 here is the link链接在这里

Generic+Webhook+Trigger+Plugin 通用+Webhook+触发器+插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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