title: Jenkins and Gitlab don't fetch code
body: <p>I have a problem when i set my own project.
  I start to configure my Jenkins Job, and I done this:</p>
  
  <ul>
  <li>create credential on Jenkins for gitlab user account</li>
  <li>create access token on gitlab and use this token in Jenkins to enable it</li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/KIepM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KIepM.png" alt="enter image description here"></a></p>
  
  <p>and this is the job configuration
  <a href="https://i.stack.imgur.com/Qy0yP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qy0yP.png" alt="enter image description here"></a></p>
  
  <p>but when i start a build, after10 minutes i get this error</p>
  
  <pre><code>Started by user admin
  Building in workspace /Users/Shared/Jenkins/Home/workspace/xxxxxxxxx
   &gt; /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
  Fetching changes from the remote Git repository
   &gt; /usr/bin/git config remote.origin.url https://gitlab.xxxxxxxxx.git # timeout=10
  Fetching upstream changes from https://xxxxxxxx.git
   &gt; /usr/bin/git --version # timeout=10
  using GIT_ASKPASS to set credentials 
   &gt; /usr/bin/git fetch --tags --progress https://xxxxxxxxxx.git +refs/heads/*:refs/remotes/origin/*
  ERROR: Timeout after 10 minutes
  ERROR: Error fetching remote repo 'origin'
  hudson.plugins.git.GitException: Failed to fetch from https://gitlab.xxxxxxx.git
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:825)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1092)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1123)
      at hudson.scm.SCM.checkout(SCM.java:495)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
      at hudson.model.Run.execute(Run.java:1737)
      at hudson.matrix.MatrixBuild.run(MatrixBuild.java:314)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:421)
  Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --tags --progress https://xxxxxxxx.git +refs/heads/*:refs/remotes/origin/*" returned status code 143:
  stdout: 
  stderr: 
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1689)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:380)
      at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:823)
      ... 11 more
  ERROR: Error fetching remote repo 'origin'
  Finished: FAILURE
  </code></pre>
  
  <p>So... how do i solve this?</p>