title: Can we setup Gitlab webhook in a Gitlab repository to trigger different Jenkins build jobs for different branches?
body: <p>I'm trying to set up different build jobs in Jenkins for different branches of a Gitlab repository. I'm using Gitlab web hook to trigger the build.</p>
  
  <p>Here are the steps I followed to setup a web hook for Jenkins CI in Gitlab</p>
  
  <ol>
  <li>Go to the project</li>
  <li>Settings --> Integrations</li>
  <li>Under 'Project Services', I've selected 'Jenkins CI'</li>
  <li>Now I've checked the 'Active' checkbox </li>
  <li>Jenkins url : <code>&lt;jenkins url&gt;</code></li>
  <li>Project Name : <code>&lt;jobname_on_jenkins&gt;</code></li>
  </ol>
  
  <p>and provided credentials.</p>
  
  <p>In Jenkins, I've selected the under 'Build triggers', I've selected </p>
  
  <p>"Build when a change is pushed to GitLab" and provided the branch filters.</p>
  
  <p>Now, In Jenkins, I've created another job with branch filter as different branch name. </p>
  
  <p>Now my question is, How do i setup a web hook in Gitlab to trigger a different Jenkins job when there is a change in a specific branch. I tried providing comma separated job names for the field 'Project Name' in Gitlab web hook for Jenkins CI but it's not allowing comma separated values there.</p>
  
  <p>Other details:</p>
  
  <p>Gitlab version : GitLab Enterprise Edition 10.8.7-ee 075705a</p>
  
  <p>Jenkins version: 2.138.3</p>
  
  <p>Plugins installed on Jenkins : Gitlab, Gitlab webhook</p>