title: Jenkins: Can't fetch project's source code from GitLab
body: <p>I run my Jenkins server on the local machine, and I met problem with fetching project from GitLab repository. I don't know exactly what I have to done.</p>
  
  <blockquote>
    <p>ERROR: Error cloning remote repo 'origin'</p>
    
    <p>hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe fetch --tags --progress <a href="http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git" rel="nofollow noreferrer">http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git</a> +refs/heads/*:refs/remotes/origin/*" returned status code 128:</p>
    
    <p>stdout: </p>
    
    <p>stderr: Logon failed, use ctrl+c to cancel basic credential prompt.</p>
    
    <p>remote: HTTP Basic: Access denied</p>
    
    <p>fatal: Authentication failed for '<a href="http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git/" rel="nofollow noreferrer">http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git/</a>'</p>
  </blockquote>
  
  <p><em>GITLAB SETTINGS:</em> <a href="https://i.stack.imgur.com/WT3id.png" rel="nofollow noreferrer">here</a></p>
  
  <p><strong>EDIT #1</strong></p>
  
  <p>When I run <code>git fetch --tags --progress http://repository.vrpconsulting.com/roman.skaskevich/koshcheck-copy.git +refs/heads/*:refs/remotes/origin/*</code> on local machine, it performs successfully and dialog for entering login/password is showed.</p>
  
  <p>But what I have to do that jenkins job performed this command successfully?</p>
  
  <p><strong>EDIT #2</strong></p>
  
  <p>For now, <a href="https://wiki.jenkins.io/display/JENKINS/Credentials+Binding+Plugin" rel="nofollow noreferrer">Credentials Binding Plugin</a> helps me implements to checking credentials in Jenkinsfile.</p>
  
  <p><strong>EDIT #3</strong></p>
  
  <p>I run Jenkins server on another machine and have the same problem. I don't want to use login/password, so adding SSH key solved this problem.</p>
  
  <p>Thanks in advance!</p>