title: Build jenkins on Bitbucket pull request events
body: <p>I'm using <a href="https://marketplace.atlassian.com/apps/1215474/post-webhooks-for-bitbucket?hosting=server&amp;tab=overview" rel="nofollow noreferrer">Post Webhooks for Bitbucket</a> to automate triggering jenkins job on creation of pull request in Bitbucket Server.</p>
  
  <p>Jenkins job has been created in order to <strong>listen for all reposiotory branches changes</strong> and is authenticated via ssh.</p>
  
  <p>I use <a href="https://wiki.jenkins.io/display/JENKINS/BitBucket+Plugin" rel="nofollow noreferrer">BitBucket Plugin</a> on Jenkins side.</p>
  
  <p>As it is said on plugin site I have created post hook in Bitbucket.</p>
  
  <p>I have checked all pull options in order to test if it works.</p>
  
  <p>The problem is that jenkins <strong>reacts and builds project on</strong>:</p>
  
  <ul>
  <li>pull request merged</li>
  <li>repository event: on push</li>
  </ul>
  
  <p>and for events events like:</p>
  
  <ul>
  <li>pull request created</li>
  <li>pull request updated</li>
  <li>pull request declined</li>
  <li>pull request re-opened</li>
  </ul>
  
  <p>it <strong>does not work</strong>, even though it is checked and work for two other options.</p>
  
  <p>Does anyone have idea what can caouse this problem?
  I would be grateful for any help.</p>