Hi all,

I'm running an issue when I try to use the repository URL (the one used for 
`git clone`) of a private project in the Repository URL field:

> git rev-parse --is-inside-work-tree # timeout=10

Fetching changes from the remote Git repository
 > git config remote.origin.url [email protected]:foo/bar.git # timeout=10
Fetching upstream changes from [email protected]:foo/bar.git
 > git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git fetch --tags --progress [email protected]:foo/bar.git 
 > +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Failed to fetch from [email protected]:foo/bar.git
        at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:803) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.fetchFrom&entity=method>
        at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1063) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.retrieveChanges&entity=method>
        at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1094) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.plugins.git.GitSCM.checkout&entity=method>
        at hudson.scm.SCM.checkout(SCM.java:495) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.scm.SCM.checkout&entity=method>
        at hudson.model.AbstractProject.checkout(AbstractProject.java:1278) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractProject.checkout&entity=method>
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout&entity=method>
        at 
jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
<http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.SCMCheckoutStrategy.checkout&entity=method>
        at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractBuild$AbstractBuildExecution.run&entity=method>
        at hudson.model.Run.execute(Run.java:1720) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.execute&entity=method>
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.FreeStyleBuild.run&entity=method>
        at hudson.model.ResourceController.execute(ResourceController.java:98) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceController.execute&entity=method>
        at hudson.model.Executor.run(Executor.java:404) 
<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
Caused by: hudson.plugins.git.GitException 
<http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
 Command "git fetch --tags --progress [email protected]:foo/bar.git 
+refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: Permission denied (publickey).
fatal: Could not read from remote repository.


If I use the project URL- that is, https://github.com/foo/bar- it's able to see 
it just fine. Is this a documentation issue, or am I supposed to be using the 
*.git repo? If so, what am I doing wrong above? I know I've got my credentials 
set up correctly.


Versions:

Jenkins ver. 2.19.4

Git Plugin: 3.0.1


Thanks!

Jack

-- 
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/c56bf7af-f20d-4e41-9c40-2b950ea6fafa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to