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

From: [email protected] 
[mailto:[email protected]] On Behalf Of Leslie Dey Murray
Sent: 06 December 2017 17:21
To: Jenkins Users
Subject: EXTERNAL: Re: EXTERNAL: Failed to connect to repository : Command 
"git.exe ls-remote -h

I did enter my uid and password, but I still get the error.  Should it be the 
uid and password for GitHub or Jenkins?

On Wednesday, December 6, 2017 at 11:30:51 AM UTC-5, Joaquin Henriquez wrote:
>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.


From: [email protected]<javascript:> 
[mailto:[email protected]<javascript:>] On Behalf Of Leslie Dey Murray
Sent: 06 December 2017 15:40
To: Jenkins Users
Subject: EXTERNAL: Failed to connect to repository : Command "git.exe ls-remote 
-h

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
--
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 [email protected]<javascript:>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ac133457-e67f-45d0-b800-20488983c55b%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/ac133457-e67f-45d0-b800-20488983c55b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9dc10368-2c6e-4be8-9d65-567c365a99cd%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/9dc10368-2c6e-4be8-9d65-567c365a99cd%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d295826281f24e3f901bdcfc148e0703%40BSKEXCH2013HYPV.mwrinfosecurity.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to