无法在哈德森中使用git进行克隆

时间:2012-06-16 02:44:21

标签: git hudson

这个问题让我很生气,我试图将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)

我可以使用git bash来克隆回购,但不知道为什么它失败了哈德森,是否有人之前遇到过这个问题,提前谢谢。

1 个答案:

答案 0 :(得分:1)

  

从ssh获取上游变更:git@github.com:williamhu1985 / robotium.git

网址错误,应该是:

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

OR