Since the stack trace includes a reference to JGit, you might try switching
your freestyle job that authenticates successfully from using the default
(command line git) implementation to instead use the jgit implementation.
If the job doesn't authenticate using JGit, then it may indicate some
difference between JGit and command line git authentication.

If the JGit implementation is not enabled in your system, you can enable it
from the "Manage Jenkins" link, and its "Configure System" link.  There
will be a "Git" button in that page, where you can add "JGit" as one of the
git implementations.

Mark Waite

On Wed, Jul 20, 2016 at 12:24 PM Michal Medvecky <medve...@pexe.so> wrote:

> Hello,
>
>
> I have set up a multi-branch pipeline job and trying to run Branch indexing. 
> It does not work, with this result:
>
>  Started by user jenkins <http://130.211.31.117/user/jenkins>
> Setting origin to git@myserver:mycompany/myrepo.git
> Fetching origin...
> FATAL: Failed to recompute children of myrepohudson.plugins.git.GitException 
> <http://stacktrace.jenkins-ci.org/search?query=hudson.plugins.git.GitException>:
>  org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
>       at 
> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:680) 
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch&entity=method>
>       at 
> jenkins.plugins.git.AbstractGitSCMSource.retrieve(AbstractGitSCMSource.java:174)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.plugins.git.AbstractGitSCMSource.retrieve&entity=method>
>       at jenkins.scm.api.SCMSource.fetch(SCMSource.java:146) 
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.scm.api.SCMSource.fetch&entity=method>
>       at 
> jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:294)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=jenkins.branch.MultiBranchProject.computeChildren&entity=method>
>       at 
> com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:157)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren&entity=method>
>       at 
> com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:122)
>  
> <http://stacktrace.jenkins-ci.org/search/?query=com.cloudbees.hudson.plugins.folder.computed.FolderComputation.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:410) 
> <http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor.run&entity=method>
> Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException 
> <http://stacktrace.jenkins-ci.org/search?query=org.eclipse.jgit.api.errors.InvalidRemoteException>:
>  Invalid remote: origin
>       at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:136) 
> <http://stacktrace.jenkins-ci.org/search/?query=org.eclipse.jgit.api.FetchCommand.call&entity=method>
>       at 
> org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch(JGitAPIImpl.java:678) 
> <http://stacktrace.jenkins-ci.org/search/?query=org.jenkinsci.plugins.gitclient.JGitAPIImpl.fetch&entity=method>
>       ... 7 more
> Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException 
> <http://stacktrace.jenkins-ci.org/search?query=org.eclipse.jgit.errors.NoRemoteRepositoryException>:
>  git@myserver:mycompany/myrepo.git: GitLab: The project you were looking for 
> could not be found.
>
>       at 
> org.eclipse.jgit.transport.TransportGitSsh.cleanNotFound(TransportGitSsh.java:208)
>       at 
> org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:288)
>       at 
> org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)
>       at 
> org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
>       at 
> org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
>       at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
>       at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
>       ... 8 more
> Finished: FAILURE
>
>
> Repository of course exists and is perfectly clonable using jenkins 
> credentials.
>
>
> Any hints please?
>
>
> Jenkins 1.651.3 <http://jenkins-ci.org/> with latest plugins.
>
>
> Michal
>
> --
> 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-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/852cabf9-287b-4cae-aa6d-21974d77d7a0%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/852cabf9-287b-4cae-aa6d-21974d77d7a0%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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFWFS%2B7Kxj9g8q6KyHdFH-8pvzxL-5q9MWN2EEJJPBJTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to