I have one repository on my Bitbucket server. I create pull requests using a branch. I want a Jenkins build to run once the pull request is approved by the specified approver. I have configured the Bitbucket webhook for that particular repository.
When I test the connection, I get a 200 response. But the trigger "Pull Request Approved" and "Pull Request Merged" returns a 500 response.
I also tried configuring the Bitbucket post Webhook to run a Jenkins build on a new push to the specified repository which works as expected.
However, my requirement is to run a Jenkins build when the pull request is approved.
Please help me out with this. Thanks.