hudson.plugins.git.GitException

Could not clone git@server:test.git

Samebug tips1

Ant scp task has an attribute called trust. If set to false (default) the host you connect to has to be set in the knownhosts file (you might have to create it) Another way is to explicitly set "trust = true". Check the documentation: https://goo.gl/G5680x

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1361

  • via eclipse.org by Unknown author, 11 months ago
    Could not clone git@server:test.git
  • via eclipse.org by Unknown author, 1 year ago
    Could not clone git@server:test.git
  • via Stack Overflow by Unknown author, 1 year ago
    Could not clone git@github.xxx.git
  • Stack trace

    • hudson.plugins.git.GitException: Could not clone git@server:test.git at hudson.plugins.git.GitAPI.clone(GitAPI.java:255) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1063) at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:1008) at hudson.FilePath.act(FilePath.java:793) at hudson.FilePath.act(FilePath.java:775) at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:1008) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:777) at hudson.model.AbstractProject.checkout(AbstractProject.java:1550) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:607) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:518) at hudson.model.Run.run(Run.java:1493) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:82) at hudson.model.Executor.run(Executor.java:137) Caused by: hudson.plugins.git.GitException: org.eclipse.jgit.api.errors.TransportException: git@server:test.git: UnknownHostKey: server. RSA key fingerprint is 62:ad:32:1a:da:52:4c:41:a4:d8:c0:a8:0b:80:c3:d3 at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:248) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:235) at hudson.FilePath.act(FilePath.java:793) at hudson.FilePath.act(FilePath.java:775) at hudson.plugins.git.GitAPI.clone(GitAPI.java:235) ... 13 more Caused by: org.eclipse.jgit.api.errors.TransportException: :test.git: UnknownHostKey: server. RSA key fingerprint is 62:ad:32:1a:da:52:4c:41:a4:d8:c0:a8:0b:80:c3:d3 at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:242) ... 17 more Caused by: org.eclipse.jgit.errors.TransportException: git@server:test.git: UnknownHostKey: server. RSA key fingerprint is 62:ad:32:1a:da:52:4c:41:a4:d8:c0:a8:0b:80:c3:d3 at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142) at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121) at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248) at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147) 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:1111) at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130) ... 20 more Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: server. RSA key fingerprint is 62:ad:32:1a:da:52:4c:41:a4:d8:c0:a8:0b:80:c3:d3 at com.jcraft.jsch.Session.checkHost(Session.java:786) at com.jcraft.jsch.Session.connect(Session.java:342) at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116) ... 27 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 5 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 2 months ago
    3 times, 6 months ago
    96 more bugmates