简体   繁体   English

在Hudson中使用git克隆失败

[英]Failed to clone using git in hudson

This question has driving me mad, i tried to integrated Git in hudson, but after installed the plugin (Jenkins GIT plugin V1.16) and create a job using Git as the SCM tool, everytime i tried to build this job,it will failed immediately ,attached the error stack trace info as following: 这个问题使我发疯,我试图将Git集成到hudson中,但是在安装了插件(Jenkins GIT插件V1.16)并使用Gi​​t作为SCM工具创建作业后,每次尝试构建此作业时,都会失败立即,附加错误堆栈跟踪信息,如下所示:

Started by user anonymous
Building remotely on William
Checkout:testgit / C:\Hudson\workspace\testgit - hudson.remoting.Channel@78b4c4:William
Using strategy: Default
Checkout:testgit / C:\Hudson\workspace\testgit - hudson.remoting.LocalChannel@167d3c4
Fetching changes from the remote Git repository
Fetching upstream changes from ssh:git@github.com:williamhu1985/robotium.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:852)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:812)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1931)
    at hudson.remoting.UserRequest.perform(UserRequest.java:114)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:270)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:58)
    at java.lang.Thread.run(Unknown Source)

I can using the git bash to clone the repo, but not sure why it failed with hudson ,is there anyone who encounter this question before, thanks in advance. 我可以使用git bash来克隆存储库,但是不确定为什么哈德逊失败了,请问有没有人之前遇到过这个问题,在此先感谢。

Fetching upstream changes from ssh:git@github.com:williamhu1985/robotium.git 从ssh:git@github.com:williamhu1985 / robotium.git获取上游更改

The URL is wrong, it should be either: URL错误,应为:

  • ssh://git@github.com:williamhu1985/robotium.git ssh://git@github.com:williamhu1985 / robotium.git

OR 要么

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM