1

这个问题让我发疯,我试图在 hudson 中集成 Git,但在安装插件(Jenkins GIT 插件 V1.16)并使用 Git 作为 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 克隆 repo,但不知道为什么它在 hudson 上失败了,有没有人遇到过这个问题,在此先感谢。

4

1 回答 1

1

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

网址错误,应该是:

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

或者

于 2012-06-16T22:28:34.570 回答