哈德森git克隆错误 [英] Hudson git clone error

查看:135
本文介绍了哈德森git克隆错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想克隆一个公共的Git仓库: git://github.com/bret/watir.git



建立失败并显示错误消息:

 由用户匿名
开始签出:workspace / C:\ Documents and Settings \ Administrator \.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
上次构建:#4
签出:工作区/ C:\ Documents and Settings \Administrator\\ \\ hudson \jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
克隆远程Git存储库
克隆存储库原点
$ git clone -o origin git:// github.com/bret/watir.gitC:\ Documents and Settings \Administrator\.hudson\jobs\watir\workspace
尝试下一个存储库
错误:无法克隆从存储库
致命:无法克隆Ë
hudson.plugins.git.GitException:在hudson.plugins.git.GitSCM $ 2.invoke(GitSCM.java:400)$ B $在hudson.plugins.git.GitSCM B可以不复制
$ 2.invoke(GitSCM.java:358)
at hudson.FilePath.act(FilePath.java:676)
at hudson.FilePath.act(FilePath.java:660)
at hudson .plugins.git.GitSCM.checkout(GitSCM.java:358)
在hudson.model.AbstractProject.checkout(AbstractProject.java:833)
在hudson.model.AbstractBuild $ AbstractRunner.checkout(AbstractBuild .java:314)
at hudson.model.AbstractBuild $ AbstractRunner.run(AbstractBuild.java:266)
at hudson.model.Run.run(Run.java:948)
at hudson.model.Build.run(Build.java:112)
在hudson.model.ResourceController.execute(ResourceController.java:93)
在hudson.model.Executor.run(Executor.java: 118)

我不认为问题出在文件夹权限上,因为我有另一个Hudson作业(使用SVN存储库)工作得很好。



我尝试从命令行克隆存储库到.hudson \jobs\watir\workspace,它工作正常:

  C:\> git clone -o origin git://github.com/bret/watir.gitC:\ Documents and Settings \Administrator\.hudson \jobs\watir\workspace
在C:/ Documents and Settings / Administrator / .hudson / jobs / watir / workspace / .git /
remote中初始化的空Git存储库:计数对象:15203 ,完成。
essing objects:100%(5307/5307),done。
remote:共计15203(delta 10052),重用14532(delta 9565)
接收对象:100%(15203/15203),7.88 MiB | 144 KiB / s,完成。
解决三角洲问题:完成100%(10052/10052)。

据我所知,Hudson使用相同的Git可执行文件或相同的版本,作为命令行。



命令行:

  C:\\ \\> git版本
git版本1.6.3.2.1299.gee46c

哈德森:

 由用户匿名
开始[工作区] $ cmd / c调用C:\DOCUME〜1 \ADMINI〜 1\LOCALS〜1\Temp\hudson9062544454093366628.bat

C:\Documents和Settings\Administrator\.hudson\jobs\watir\workspace> git的版本
git version 1.6.3.2.1299.gee46c
完成:SUCCESS

搜寻网页我发现只有一个页面与我的错误消息相关(哈德森git插件远程窗口奴隶克隆 ),它说,问题是Git不在路径中。但在这种情况下, git version 不会从Hudson运行,对吗?



环境:




  • Microsoft Windows Server 2003 R2标准版Service Pack 2
  • java 1.6.0_14

  • Hudson 1.316

  • Hudson GIT插件0.7.3

  • git 1.6.3.2.1299.gee46c


解决方案

看起来像哈德森git插件远程窗口奴隶克隆后是正确的。当我转到管理Hudson>配置系统时,在 Git> Git可执行文件部分,有错误 PATH中没有可执行的git 。 (如果Hudson在显示页面后需要几秒钟显示错误。)将 C:\ Program Files \Git\bin 添加到路径并重新启动Hudson解决了这个问题。


I have created free-style software project in Hudson.

I want to clone a public Git repository: git://github.com/bret/watir.git

Build fails with error message:

Started by user anonymous
Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
Last Build : #4
Checkout:workspace / C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - hudson.remoting.LocalChannel@1a1f370
Cloning the remote Git repository
Cloning repository origin
$ git clone -o origin git://github.com/bret/watir.git "C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace"
Trying next repository
ERROR: Could not clone from a repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:400)
    at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:358)
    at hudson.FilePath.act(FilePath.java:676)
    at hudson.FilePath.act(FilePath.java:660)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:358)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:833)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:314)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:266)
    at hudson.model.Run.run(Run.java:948)
    at hudson.model.Build.run(Build.java:112)
    at hudson.model.ResourceController.execute(ResourceController.java:93)
    at hudson.model.Executor.run(Executor.java:118)

I do not think the problem is in folder permissions because I have another Hudson job (with SVN repository) that works just fine.

I have tried to clone the repository to .hudson\jobs\watir\workspace from command line, and it works fine:

C:\>git clone -o origin git://github.com/bret/watir.git "C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace"
Initialized empty Git repository in C:/Documents and Settings/Administrator/.hudson/jobs/watir/workspace/.git/
remote: Counting objects: 15203, done.
essing objects: 100% (5307/5307), done.
remote: Total 15203 (delta 10052), reused 14532 (delta 9565)
Receiving objects: 100% (15203/15203), 7.88 MiB | 144 KiB/s, done.
Resolving deltas: 100% (10052/10052), done.

As far as I can tell, Hudson used either the same Git executable or the same version of it, as command line does.

Command line:

C:\>git version
git version 1.6.3.2.1299.gee46c

Hudson:

Started by user anonymous
[workspace] $ cmd /c call C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\hudson9062544454093366628.bat

C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace>git version
git version 1.6.3.2.1299.gee46c
Finished: SUCCESS

Searching the web I have found only one page related to my error message (hudson git plugin remote windows slave clone), and it says that the problem is Git not being in path. But in that case, git version would not run from Hudson, right?

Environment:

  • Microsoft Windows Server 2003 R2, Standard Edition, Service Pack 2
  • java 1.6.0_14
  • Hudson 1.316
  • Hudson GIT plugin 0.7.3
  • git 1.6.3.2.1299.gee46c

解决方案

Looks like hudson git plugin remote windows slave clone post was right. When I go to Manage Hudson > Configure System, in Git > Git executable section, there is error There's no such executable git in PATH. (If takes a few seconds for Hudson to display the error after the page is displayed.) Adding C:\Program Files\Git\bin to path and restarting Hudson solved the problem.

这篇关于哈德森git克隆错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆