title: Trigger Jenkins pipeline from Gitlab webhook
body: <p>Just started with Jenkins and I can't seem to get how to properly configure SCM for pipelines since there's no SCM config tab there. I've added a webhook to my gitlab project, with URL</p>
  
  <p><a href="http://my-jenkins-server.com/git/notifyCommit?url=https://my-gitlab-server.com/my-repo.git" rel="nofollow noreferrer">http://my-jenkins-server.com/git/notifyCommit?url=https://my-gitlab-server.com/my-repo.git</a></p>
  
  <p>But when I visit that URL, Jenkins tells me</p>
  
  <pre><code>No Git consumers using SCM API plugin for: https://my-gitlab-server.com/my-repo.git
  </code></pre>
  
  <p>which sort of makes sense because I haven't explicitly told Jenkins that my pipeline is tied to this repo, just implicitly in the Jenkins script:</p>
  
  <pre><code>stage('Build'){
      git url: 'https://my-gitlab-server.com/my-repo.git', branch: 'master', credentialsId: '&lt;some-hash&gt;'
      sh 'cd linux-native; make clean all'
  }
  </code></pre>
  
  <p>So how do I tell Jenkins that a PIPELINE is tied to a specific repo? Alternatively, how do I find the proper <code>notifyCommit</code> url for my pipeline?</p>