# Gitlab Repository error

**URL:** <https://community.jenkins.io/t/gitlab-repository-error/5689>\
**Category:** Using Jenkins\
**Created:** [February 9, 2023, 1:54pm UTC](https://community.jenkins.io/t/gitlab-repository-error/5689 "2023-02-09T13:54:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![iambuka](https://avatars.discourse-cdn.com/v4/letter/i/3d9bf3/32.png) [@iambuka](https://community.jenkins.io/u/iambuka)\
**Post date:** [February 9, 2023, 1:54pm UTC](https://community.jenkins.io/t/gitlab-repository-error/5689/1 "2023-02-09T13:54:08Z")

</div>

```auto
When Adding repository link this error pops up, Can someone help me?  
![|1x16](http://localhost:5555/static/3107379c/images/none.gif)Failed to connect to repository : Command "C:\Program Files\Git\mingw64\bin\git.exe ls-remote -h -- https://gitlab.corp.adjarabet.com/a.turdzeladze/cbs360-ui-automated-tests.git/ HEAD" returned status code 128:
stdout:
stderr: remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab.corp.adjarabet.com/a.turdzeladze/cbs360-ui-automated-tests.git/'

![git error|690x356](upload://l3SrFbSVMEZcp90CHb38juTX4tc.png)

```

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [February 9, 2023, 2:49pm UTC](https://community.jenkins.io/t/gitlab-repository-error/5689/2 "2023-02-09T14:49:08Z")

</div>

Usually that means you need to define a Jenkins credential that has access to that repository.

> **[Using credentials](https://www.jenkins.io/doc/book/using/using-credentials/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

---

<div class="post-metadata">

**Author:** ![iambuka](https://avatars.discourse-cdn.com/v4/letter/i/3d9bf3/32.png) [@iambuka](https://community.jenkins.io/u/iambuka)\
**Post date:** [February 10, 2023, 6:47am UTC](https://community.jenkins.io/t/gitlab-repository-error/5689/3 "2023-02-10T06:47:01Z")

</div>

Thanks for answer, but i have done everything that, i have working repository from gitlab with same credentials but for different repo but it is not working on this repo

---

<div class="post-metadata">

**Author:** ![PierreBtz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/pierrebtz/32/55_2.png) [@PierreBtz](https://community.jenkins.io/u/PierreBtz)\
**Post date:** [February 10, 2023, 3:32pm UTC](https://community.jenkins.io/t/gitlab-repository-error/5689/4 "2023-02-10T15:32:45Z")

</div>

Permissions are set per repo, if you have another repository working, then it means that the user you are trying to use does not have the access permissions for the repo you are trying to access.
