# Jenkins Bitbucket Credentials Cannot read repo

**URL:** <https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639>\
**Category:** Using Jenkins\
**Created:** [May 26, 2023, 10:36am UTC](https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639 "2023-05-26T10:36:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicholaswkc34](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/nicholaswkc34/32/4374_2.png) [@nicholaswkc34](https://community.jenkins.io/u/nicholaswkc34)\
**Post date:** [May 26, 2023, 10:36am UTC](https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639/1 "2023-05-26T10:36:20Z")

</div>

I want to read the bitbucket repo from Jenkins throught git. I did provide the bitbucket url in Maven integration project and provide my username and password to it but unfortunately it cannot read the repo. I don’t know what wrong with it. Anyone can enlighten me.

The Error is  
Failed to connect to repository : Command “C:\Program Files\Git\bin\git.exe ls-remote -h – [https://nicholasWongKC@bitbucket.org/mediaprimadigital/butv3-automation-testing.git](https://nicholasWongKC@bitbucket.org/mediaprimadigital/butv3-automation-testing.git) HEAD” returned status code 128: stdout: stderr: fatal: Cannot prompt because user interactivity has been disabled. remote: Login failed due to incorrect login credentials or method. remote: If you are unsure of which login details or login method to use, visit: remote: [https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cl](https://support.atlassian.com/bitbucket-cloud/docs/log-into-or-connect-to-bitbucket-cl)

How to solve this error? I totally a beginner in jenkins. Please help me. A billion thanks for your help.

---

<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:** [May 26, 2023, 11:17am UTC](https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639/2 "2023-05-26T11:17:03Z")

</div>

There is a description of Jenkins credentials on this page

> **[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

That page also includes the video:

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/3/389d069911385dd7ce97e4ffe8beb0679a234d59.jpeg "The Correct Way to Handle Credentials in a Jenkins Pipeline") ](https://www.youtube.com/watch?v=yfjtMIDgmfs)

---

<div class="post-metadata">

**Author:** ![nicholaswkc34](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/nicholaswkc34/32/4374_2.png) [@nicholaswkc34](https://community.jenkins.io/u/nicholaswkc34)\
**Post date:** [May 29, 2023, 6:45am UTC](https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639/3 "2023-05-29T06:45:18Z")

</div>

I had use the Jenkis credential helper which is username and password but still there is error pop out.

I tried with my personal github repo and it working perfectly but when I using company bitbucket repo it display error.

I had tried to create Bitbucket App Password but the option doesn’t display there.

May I know what wrong with it?

---

<div class="post-metadata">

**Author:** ![poddingue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/poddingue/32/985_2.png) [@poddingue](https://community.jenkins.io/u/poddingue)\
**Post date:** [May 29, 2023, 1:43pm UTC](https://community.jenkins.io/t/jenkins-bitbucket-credentials-cannot-read-repo/7639/4 "2023-05-29T13:43:18Z")

</div>

If you ever have access to the machine running Jenkins, open a command prompt or terminal and try running the failing Git command manually:

```bash
"C:\Program Files\Git\bin\git.exe" ls-remote -h -- https://nicholasWongKC@bitbucket.org/mediaprimadigital/butv3-automation-testing.git HEAD

```

Is it failing?
