title: BitBucket WebHook Jenkins
body: <p>I'd like to configure bitbutcket to trigger a jenkins build.</p>
  
  <p>I've spent some time researching this and all the answers are from a few years ago, and have not found any guides because things seem to have changed since.</p>
  
  <p><strong>What I'm trying to do:</strong>
  A bitbucket push to a particular branch triggers a build.</p>
  
  <p><strong>What I've got:</strong>
  Bitbucket web hooks which fires HTTP request to Jenkins on a push to any branch. I've also installed the Bitbucket plugin on Jenkins which adds a check box in the job config <code>Build when a change is pushed to BitBucket</code>. This checkbox doesnt seem to work (maybe I set it up wrong? minimal docs for this), despite me pushing to the configured branch in the SCM section.</p>
  
  <p><strong>Problem 1</strong>: Bitbucket does not fire a GET, but another request which causes a 403. I tested with postman, and it works with a GET, but not a POST.</p>
  
  <p><strong>Problem 2:</strong> This HTTP build request is fired on pushes to any branch. While the build is still restricted to a particular branch, it seems unnecessary to be rebuilding all the time. </p>
  
  <p>How do i address these issues? Bitbucket does not seem to be very flexible in customizing this. The Jenkins plugin for bitbucket has a lot of 'bad' reviews. How are developers currently doing this?</p>