# Jenkins Global Credentials with git not working

**URL:** <https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805>\
**Category:** Using Jenkins\
**Created:** [March 15, 2022, 1:15am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805 "2022-03-15T01:15:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DHNE115](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dhne115/32/1131_2.png) [@DHNE115](https://community.jenkins.io/u/DHNE115)\
**Post date:** [March 15, 2022, 1:15am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/1 "2022-03-15T01:15:17Z")

</div>

Hi,

Had created job in Jenkins to use global credentials with git, but it was worked till march 13th and not working from toady. Any change in the global credentials plugin in Jenkins?.

Jenkins version - Jenkins 2.316

Error:  
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2661)  
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2086)  
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:86)  
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:608)  
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:837)  
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1223)  
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1301)  
at hudson.scm.SCM.checkout(SCM.java:505)  
at hudson.model.AbstractProject.checkout(AbstractProject.java:1213)  
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:637)  
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)  
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:509)  
at hudson.model.Run.execute(Run.java:1888)  
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)  
at hudson.model.ResourceController.execute(ResourceController.java:99)  
at hudson.model.Executor.run(Executor.java:432)

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 15, 2022, 2:16am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/2 "2022-03-15T02:16:09Z")

</div>

Hi there,

“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.

1. what did you try? (Code samples, command lines, screenshots, videos, etc)
2. what did happen? (Error messages, description, outputs, stuff)
3. what did you expect to happen?

Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.

---

<div class="post-metadata">

**Author:** ![DHNE115](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dhne115/32/1131_2.png) [@DHNE115](https://community.jenkins.io/u/DHNE115)\
**Post date:** [March 15, 2022, 2:33am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/3 "2022-03-15T02:33:07Z")

</div>

![image](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/1/1567c37aa32c34454ab8baabf7c0826143426384.png)

I am trying to checkout code from git using SCM in a free style project. This configuration worked till yesterday all sudden it throws this error posted.

Console Error:  
ERROR: Error cloning remote repo ‘origin’  
hudson.plugins.git.GitException: Command “git fetch --tags --progress [https://bitbucket.org/xxsxsxxxxx/dddddddd.git](https://bitbucket.org/xxsxsxxxxx/dddddddd.git) +refs/heads/_:refs/remotes/origin/_” returned status code 128:

---

<div class="post-metadata">

**Author:** ![DHNE115](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dhne115/32/1131_2.png) [@DHNE115](https://community.jenkins.io/u/DHNE115)\
**Post date:** [March 15, 2022, 4:07am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/4 "2022-03-15T04:07:05Z")

</div>

It got fixed. Issue is in git repository.  
Created App password and used this password instead of git account password in Jennkins  
Thanks.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 15, 2022, 7:40am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/5 "2022-03-15T07:40:35Z")

</div>

I was going to ask if it was bitbucket app password, but they cut over march 1st, you said specifically it worked since then.

---

<div class="post-metadata">

**Author:** ![DHNE115](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dhne115/32/1131_2.png) [@DHNE115](https://community.jenkins.io/u/DHNE115)\
**Post date:** [March 15, 2022, 7:44am UTC](https://community.jenkins.io/t/jenkins-global-credentials-with-git-not-working/1805/6 "2022-03-15T07:44:04Z")

</div>

Yes, it was mentioned March 1St, But i seen the issue from yesterday(14th after sunset).
