hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe ls-remote -h <a href="https://suma@bitbucket.org/suma/bitbucketjenkins01.git" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://suma@bitbucket.org/suma/bitbucketjenkins01.git</a>" returned status code -1:<br> stdout: <br> stderr: <br> java.io.IOException: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe ls-remote -h <a href="https://suma@bitbucket.org/suma/bitbucketjenkins01.git" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://suma@bitbucket.org/suma/bitbucketjenkins01.git</a>" returned status code -1:<br> stdout: <br> stderr: <br>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via jenkins-ci.org by Unknown author

Our Jenkins(J) is linked with Bitbucket(BB). A pull request(PR) is created in BB, then it's auto-built in J, then it's updated with a commit but BB doesn't update the branch, so J can't check it out. Solution: open the PR in BB web ui.

Solutions on the web

via Google Groups by sum...@gmail.com (JIRA), 1 year ago
Command "C:\Program Files\Git\bin\git.exe ls-remote -h <a href="https://suma@bitbucket.org/suma/bitbucketjenkins01.git" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://suma@bitbucket.org/suma
via Google Groups by pt...@roshitech.com (JIRA), 1 year ago
Command "/usr/bin/git ls-remote -h git@thoroughbred:flt/root.git" returned status code 128:<br> stdout: <br> stderr: ssh_exchange_identification: read: Connection reset by peer<br> fatal: Could not read from remote repository.</p> <p style="margin
via Jenkins JIRA by Michael F., 11 months ago
Command "git -c core.askpass=true ls-remote -h ssh://someUser@localhost/example-projects/example1" returned status code 128: stdout: stderr: fatal: Project not found: example-projects/example1 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
via Jenkins JIRA by Federico Naum, 11 months ago
Command "git -c core.askpass=true ls-remote -h http://github.mycompamy.com/myorg/myrepo" returned status code 128: stdout: stderr: remote: Repository not found. fatal: repository 'http://github.mycompamy.com/myorg/myrepo/' not found
via Jenkins JIRA by Mark Edwards, 11 months ago
Could not init C:\Users\Jenkins\AppData\Local\Temp\hudson6971482768098223685tmp
via Jenkins JIRA by Charles Doucette, 11 months ago
Error performing command: /usr/local/bin/git ls-remote -h git@github.com:everyscape/Mobile.git release
hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe ls-remote -h <a href="https://suma@bitbucket.org/suma/bitbucketjenkins01.git" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://suma@bitbucket.org/suma/bitbucketjenkins01.git</a>" returned status code -1:<br> stdout: <br> stderr: <br> java.io.IOException: hudson.plugins.git.GitException: Command "C:\Program Files\Git\bin\git.exe ls-remote -h <a href="https://suma@bitbucket.org/suma/bitbucketjenkins01.git" class="external-link" rel="nofollow" style="color: #3b73af; text-decoration: none">https://suma@bitbucket.org/suma/bitbucketjenkins01.git</a>" returned status code -1:<br> stdout: <br> stderr: <br>
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1752)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1495)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1419)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1410)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getHeadRev(CliGitAPIImpl.java:2463)
at hudson.plugins.git.GitSCM.compareRemoteRevisionWithImpl(GitSCM.java:613)
at hudson.scm.SCM.compareRemoteRevisionWith(SCM.java:391)
at hudson.scm.SCM.poll(SCM.java:408)
at hudson.model.AbstractProject._poll(AbstractProject.java:1460)
at hudson.model.AbstractProject.poll(AbstractProject.java:1363)
at com.cloudbees.jenkins.plugins.BitBucketTrigger$1.runPolling(BitBucketTrigger.java:62)
at com.cloudbees.jenkins.plugins.BitBucketTrigger$1.run(BitBucketTrigger.java:87)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:119)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.