Failed to connect to repository : Command "git.exe ls-remote -h

391 views
Skip to first unread message

Leslie Dey Murray

unread,
Dec 6, 2017, 11:27:33 AM12/6/17
to Jenkins Users
Can someone help me figure out what the problem is with my connection.  I can't figure it out :-(

Building in workspace C:\windows\system32\config\systemprofile\.jenkins\workspace\TestRepo-Freestyle Project
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url http://github.elguardia.net/MRAApps/TestRepo # timeout=10
Fetching upstream changes from http://github.elguardia.net/MRAApps/TestRepo
 > git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --progress http://github.elguardia.net/MRAApps/TestRepo +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://github.elguardia.net/MRAApps/TestRepo
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:825)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1092)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1123)
	at hudson.scm.SCM.checkout(SCM.java:495)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1212)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:566)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:491)
	at hudson.model.Run.execute(Run.java:1737)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:421)
Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress http://github.elguardia.net/MRAApps/TestRepo +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'http://github.elguardia.net/MRAApps/TestRepo/'

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1689)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:380)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:823)
	... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

Joaquin Henriquez

unread,
Dec 6, 2017, 11:30:51 AM12/6/17
to jenkins...@googlegroups.com

From ready your output:

Caused by: hudson.plugins.git.GitException: Command "git.exe fetch --tags --progress http://github.elguardia.net/MRAApps/TestRepo +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: remote: Invalid username or password.
fatal: Authentication failed for 'http://github.elguardia.net/MRAApps/TestRepo/'

 

Just configure on the Configuration system your Github account with user/password.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac133457-e67f-45d0-b800-20488983c55b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leslie Dey Murray

unread,
Dec 6, 2017, 12:24:49 PM12/6/17
to Jenkins Users
I did enter my uid and password, but I still get the error.  Should it be the uid and password for GitHub or Jenkins?

Joaquin Henriquez

unread,
Dec 6, 2017, 12:28:31 PM12/6/17
to jenkins...@googlegroups.com

Think where git.exe is connecting to and you will have your answer.

Reply all
Reply to author
Forward
0 new messages