我正在尝试从 github 获取一个只读的 git 存储库,并通过 hudson 构建它。这个过程失败了。
这是哈德逊输出:
Started by an SCM change
Checkout:workspace / d:\hudson\home\jobs\gdcm-hudson\workspace - hudson.remoting.LocalChannel@19ba1d8
Using strategy: Default
Checkout:workspace / d:\hudson\home\jobs\gdcm-hudson\workspace - hudson.remoting.LocalChannel@19ba1d8
GitAPI created
Fetching changes from the remote Git repository
Fetching upstream changes from git://github.com/malaterre/gdcm.git
[workspace] $ "C:\Program Files (x86)\Git\bin\git.exe" fetch -t git://github.com/malaterre/gdcm.git +refs/heads/*:refs/remotes/origin/*
[workspace] $ "C:\Program Files (x86)\Git\bin\git.exe" ls-tree HEAD
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:674)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:641)
at hudson.FilePath.act(FilePath.java:753)
at hudson.FilePath.act(FilePath.java:735)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:641)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1061)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1273)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:129)
当我直接通过 git bash 命令行运行该 fetch 命令时,我没有得到任何响应(我认为这意味着它有效)。
我查看了这个可能的解决方案: http://issues.hudson-ci.org/browse/HUDSON-7141?page= com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
但是使用该版本的插件并没有改变这种行为。
我什至还没有让它与 cmake 一起工作,只是一直下载。我怎样才能让它工作?
编辑:这个问题不是问题克隆/获取存储库使用 Git 插件 for Hudson on Windows的重现,因为我没有在服务器上作为服务运行。