title: Jenkins pipeline automatic branch detection
body: <p>I am migrating my old Jenkins free-style job to multi-branch pipeline. I also want to use GitLab hook with them.</p>
  
  <p>My problem is the branch detection. I am doing it manually but I want it to be automatic: when a new branch is pushed to git, GitLab trigger a Jenkins job that trigger the branch detection if the branch parameter from GitLab is not known for Jenkins at the moment. Is this possible to do it or doesn't this exist?</p>
  
  <p>FYI: I tried to launch the multi-branch pipeline job but Jenkins says: </p>
  
  <pre><code>ERROR: No parameterized job named XXX found.
  </code></pre>