hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:

Jenkins JIRA | chris hudson | 1 year 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

    I verified the credentials file is created and has the correct information I tried 2 different credentials my user account and the jenkins domain account, both have read permissions in the repo If i take the same commands and put them in a "Execute batch command" it times out as well If i take the commands out of jenkins and run them in a command prompt they are successsful! Output from build Started by user ***** ****** [EnvInject] - Loading node environment variables. Building in workspace C:\Program Files (x86)\Jenkins\jobs\WebAppTest\workspace [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Done Cloning the remote Git repository Cloning repository https://<Git enabled tfs>/_git/Project > C:\Program Files\Git\bin\git.exe init C:\Program Files (x86)\Jenkins\jobs\WebAppTest\workspace # timeout=10 Fetching upstream changes from https://<Git enabled tfs>/_git/Project > C:\Program Files\Git\bin\git.exe --version # timeout=10 using .gitcredentials to set credentials > C:\Program Files\Git\bin\git.exe config --local credential.username <domain>\<username> # timeout=10 > C:\Program Files\Git\bin\git.exe config --local credential.helper store --file=\"C:\Users\<username>\AppData\Local\Temp\git2738443241863674451.credentials\" # timeout=10 > C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutes > C:\Program Files\Git\bin\git.exe config --local --remove-section credential # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1013) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: null IIS Logs from TFS Server 2016-03-17 15:57:39 192.168.***.888 GET /tfs/DefaultCollection/****/_git/project/info/refs service=git-upload-pack 443 - 888.888.***.*** git/2.7.3.windows.1 - 401 2 5 0 2016-03-17 16:01:22 192.168.888.888 GET /tfs/DefaultCollection/****/_git/project/info/refs service=git-upload-pack 443 - 192.168.***.*** git/2.7.3.windows.1 - 401 2 5 0 --no further traffic from jenkins.

    Jenkins JIRA | 1 year ago | chris hudson
    hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:
  2. 0

    I verified the credentials file is created and has the correct information I tried 2 different credentials my user account and the jenkins domain account, both have read permissions in the repo If i take the same commands and put them in a "Execute batch command" it times out as well If i take the commands out of jenkins and run them in a command prompt they are successsful! Output from build Started by user ***** ****** [EnvInject] - Loading node environment variables. Building in workspace C:\Program Files (x86)\Jenkins\jobs\WebAppTest\workspace [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Done Cloning the remote Git repository Cloning repository https://<Git enabled tfs>/_git/Project > C:\Program Files\Git\bin\git.exe init C:\Program Files (x86)\Jenkins\jobs\WebAppTest\workspace # timeout=10 Fetching upstream changes from https://<Git enabled tfs>/_git/Project > C:\Program Files\Git\bin\git.exe --version # timeout=10 using .gitcredentials to set credentials > C:\Program Files\Git\bin\git.exe config --local credential.username <domain>\<username> # timeout=10 > C:\Program Files\Git\bin\git.exe config --local credential.helper store --file=\"C:\Users\<username>\AppData\Local\Temp\git2738443241863674451.credentials\" # timeout=10 > C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/* ERROR: Timeout after 10 minutes > C:\Program Files\Git\bin\git.exe config --local --remove-section credential # timeout=10 ERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1719) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1013) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1269) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) ERROR: null IIS Logs from TFS Server 2016-03-17 15:57:39 192.168.***.888 GET /tfs/DefaultCollection/****/_git/project/info/refs service=git-upload-pack 443 - 888.888.***.*** git/2.7.3.windows.1 - 401 2 5 0 2016-03-17 16:01:22 192.168.888.888 GET /tfs/DefaultCollection/****/_git/project/info/refs service=git-upload-pack 443 - 192.168.***.*** git/2.7.3.windows.1 - 401 2 5 0 --no further traffic from jenkins.

    Jenkins JIRA | 1 year ago | chris hudson
    hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +refs/heads/*:refs/remotes/origin/*" returned status code -1: stdout: stderr:
  3. 0

    [JIRA] [git-plugin] (JENKINS-33631) Git plugin - timeout after 10 minutes never sends credentials (401 observed on git repo)

    Google Groups | 1 year ago | chudson121@hotmail.com (JIRA)
    hudson.plugins.git.GitException: Command &quot;C:\Program Files\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://&lt;Git enabled tfs&gt;/_git/Project +refs/heads/<b>:refs/remotes/origin/</b>&quot; returned status code -1: stdout: stderr:
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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.
  6. 0

    [JENKINS-19726] JGIT Error in combination with self signed certificate and https repo - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    hudson.plugins.git.GitException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    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\Git\bin\git.exe -c core.askpass=true fetch --tags --progress https://<Git enabled tfs>/_git/Project +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:1719)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1463)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:63)
      4. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:314)
      5. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:506)
      5 frames
    3. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1013)
      2. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1053)
      2 frames
    4. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
      3 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:529)
      2. hudson.model.Run.execute(Run.java:1738)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames