title: How to trigger a jenkins pipeline from a bitbucket repository
body: <p>I have successfully setup a webhook trigger in bitbucket for a Jenkins freestyle project, for test purposes.</p>
  
  <p>Unfortunately my Jenkins project is using the Pipeline format, and I am unable to get Bitbucket to trigger that kind of project; the problem seems to be that there is no Jenkins project registered to pull from the repo that the Bitbucket webhook is coming from, and Jenkins replies with:</p>
  
  <pre><code>Error: Jenkins response: No git jobs using repository: ssh://git@myhost:7999/xxx/testing-jenkins.git and branches: master No Git consumers using SCM API plugin for: ssh://git@myhost:7999/xxx/testing-jenkins.git
  </code></pre>
  
  <p>The pipeline project is setup in a way that the <code>Jenkinsfile</code> is to be found in the given repository (<code>ssh://git@myhost:7999/xxx/testing-jenkins.git</code>), by using the "Pipeline script from SCM" option.</p>
  
  <p>Therefore there is <em>actually</em> a kind of "git consumer" for the Pipeline, but this does not seem to be taken into account by Jenkins, probably because this is not a real project source, but a pipeline source.</p>
  
  <p>Are there any examples of integration of Bitbucket and Jenkins Pipeline projects? I have been unable to find any.</p>