hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:

Jenkins JIRA | yavor vrachev | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hello there, I have got a bitbucket repository and git installed. I wan to to connect my bitbucket with jenkins and vice versa. However, it does not work. I get this error in my Jenkins project: Failed to connect to repository url : Error performing command: C:\Program Files (x86)\Git\cmd ls-remote -h git@bitbucket.org:test/test-test2.git HEAD I have put my Git/cmd folder as executable in general settings for Jenkins, but when I try to enter the repository url, the above error is being displayed. I have added the SSH keys but no luck so far. I have added the PIDs of the agents in the files in order to be recognized, but no progress. I have also tried to run the JENKINS service by logging as a user rather than a local user but also didn't work. I know it should have been working just by adding the id_rsa key to bitbucket's account, but I am exhausted already. Any help would be really really appreciated, I have been struggling with this issue for quite some time now. After I have done some fixes, this is the error I get now: RROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) ERROR: null Finished: FAILURE

    Jenkins JIRA | 3 years ago | yavor vrachev
    hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:
  2. 0

    Hello there, I have got a bitbucket repository and git installed. I wan to to connect my bitbucket with jenkins and vice versa. However, it does not work. I get this error in my Jenkins project: Failed to connect to repository url : Error performing command: C:\Program Files (x86)\Git\cmd ls-remote -h git@bitbucket.org:test/test-test2.git HEAD I have put my Git/cmd folder as executable in general settings for Jenkins, but when I try to enter the repository url, the above error is being displayed. I have added the SSH keys but no luck so far. I have added the PIDs of the agents in the files in order to be recognized, but no progress. I have also tried to run the JENKINS service by logging as a user rather than a local user but also didn't work. I know it should have been working just by adding the id_rsa key to bitbucket's account, but I am exhausted already. Any help would be really really appreciated, I have been struggling with this issue for quite some time now. After I have done some fixes, this is the error I get now: RROR: Timeout after 10 minutes ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) ERROR: null Finished: FAILURE

    Jenkins JIRA | 3 years ago | yavor vrachev
    hudson.plugins.git.GitException: Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:
  3. 0

    When Jenkins is behind an authentication proxy, git-client cannot checkout git repository. {code} Cloning the remote Git repository Cloning repository https://example.com/example.git > git init /var/lib/jenkins/jobs/test/workspace # timeout=10 Fetching upstream changes from https://example.com/example.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git3935065820026506239.credentials # timeout=10 Setting http proxy: http://example.local:8080/ > git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access 'https://example.com/example.git': Received HTTP code 407 from proxy after CONNECT at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) ERROR: null Finished: FAILURE {code}

    Jenkins JIRA | 3 years ago | OHTAKE Tomohiro
    hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access 'https://example.com/example.git': Received HTTP code 407 from proxy after CONNECT
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When Jenkins is behind an authentication proxy, git-client cannot checkout git repository. {code} Cloning the remote Git repository Cloning repository https://example.com/example.git > git init /var/lib/jenkins/jobs/test/workspace # timeout=10 Fetching upstream changes from https://example.com/example.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git3935065820026506239.credentials # timeout=10 Setting http proxy: http://example.local:8080/ > git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/* > git config --local --remove-section credential # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access 'https://example.com/example.git': Received HTTP code 407 from proxy after CONNECT at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:881) at hudson.model.AbstractProject.checkout(AbstractProject.java:1254) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) ERROR: null Finished: FAILURE {code}

    Jenkins JIRA | 3 years ago | OHTAKE Tomohiro
    hudson.plugins.git.GitException: Command "git fetch --tags --progress https://example.com/example.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: fatal: unable to access 'https://example.com/example.git': Received HTTP code 407 from proxy after CONNECT
  6. 0

    Jenkins git plugin does not allow parameter on repository URL

    Stack Overflow | 3 years ago | user2631836
    hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@myrepo/java/login.git +refs/heads/*:refs/remotes/origin/* --depth=1" returned status code 128: stdout: stderr: Permission denied, please try again. Permission denied, please try again. Permission denied (publickey,password). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "C:\Program Files (x86)\Git\cmd\git.exe fetch --tags --progress git@bitbucket.org:test/test.git +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$2.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1195)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:266)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:422)
      5 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:848)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:881)
      2 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1254)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:624)
      2 frames
    5. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    6. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:530)
      2. hudson.model.Run.execute(Run.java:1732)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:88)
      5. hudson.model.Executor.run(Executor.java:234)
      5 frames