title: How to connect to the gitlab from jenkins with token? You must use a personal access token with 'read_repository'
body: <p>I have unexpectedly error <code>remote: You must use a personal access token with 'read_repository' or 'write_repository' scope for Git over HTTP.</code> in Jenkins job.</p>
  <p>I also got this error when I try to pull from repo in the console and resolved this issue in the follow way:</p>
  <pre><code>git remote set-url origin https://valentyn.hruzytskyi:[TOKEN]@gitlab.com/url_to.git
  </code></pre>
  <p>So the token is correct and I try to set this token for connection:</p>
  <p><a href="https://i.stack.imgur.com/nrA51.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nrA51.png" alt="enter image description here" /></a></p>
  <p>But I can't found this connection profile and I steel can't connect to the git from Jenkins:</p>
  <p><a href="https://i.stack.imgur.com/CUazB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CUazB.png" alt="enter image description here" /></a></p>
  <p>How to use the token connection in the Jenkins correctly?</p>