Jenkins is not triggering build on any pullrequest merge in bitbucket repo

Had configured the Bitbucket with Jenkins , When there is pull request merged in bitbucket Jenkins not triggering the build job.

In bit bucket added webhook url my domain/bitbucket-hook/

Jenkins

installed Bitbucket, push and pull request plugin

Build Triggers - Enabled Bitbucket webhook trigger (pull request), Build with BitBucket Push and Pull Request Plugin, Poll SCM

Enabled the below logs

  • com.cloudbees.jenkins.plugins.BitbucketHookReceiver
  • com.cloudbees.jenkins.plugins.BitBucketTrigger
  • com.cloudbees.jenkins.plugins.BitbucketJobProbe
  • com.cloudbees.jenkins.plugins.BitbucketPayloadProcessor
  • com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource
  • }}When i merge the pull request{{in bitbucket i am seeing the Webhooks request details with status 200 with body as empty.
  • {{}}
  • in jenkins logs i am receiving the request from webhook}}Received commit hook notification :{{… JOSN with commit messages, But build is not triggered.

Added Schedule with * * * * * in the Cron and it worked.