简体   繁体   中英

Bitbucket WebHooks Jenkins Pipeline Trigger Payload

We have a pipeline in Jenkins that we want to trigger upon creating\\updating pull requests on a particular repository.

There will be multiple branches for the repo such as feature\\bugfix etc, so we configured the webhook trigger such that if a pull request is created or updated, the webhook triggers the pipeline from Bitbucket which includes the Payload data which in-turn includes the source and target branches that we need in the pipeline

Now we want somehow that JSON payload data included in the Bitbucket's webhook to be parse into the pipeline and get the source and target branches in the pipeline. My question is what is way to get this job done?

Thanks in advance.

是的, 通用 Webhook 触发器插件可以解析负载中的变量。

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