我在哈德森創建了自由風格的軟件項目。哈德森git克隆錯誤
我想克隆一個公共Git倉庫:git://github.com/bret/watir.git
構建失敗,錯誤消息:
Started by user anonymous
Checkout:workspace/C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - [email protected]
Last Build : #4
Checkout:workspace/C:\Documents and Settings\Administrator\.hudson\jobs\watir\workspace - [email protected]
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)
我不認爲這個問題是在文件夾的權限,因爲我還有一個哈德森工作(與SVN存儲庫),工作得很好。
我曾嘗試克隆庫,以.hudson \工作\的Watir \命令行的工作空間,並能正常工作:
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.
據我所知,哈德森使用,也可以同Git的可執行文件或者它的相同版本,就像命令行一樣。
命令行:
C:\>git version
git version 1.6.3.2.1299.gee46c
哈德森:
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
搜索,我發現不僅關係到我的錯誤消息(hudson git plugin remote windows slave clone)一個頁面的網站,它說,這個問題是Git的不在路上。但在這種情況下,git version
不會從哈德森跑,對吧?
環境:
- 的Microsoft Windows Server 2003 R2標準版,Service Pack 2的
- 的Java 1.6.0_14
- 哈德森1.316
- 哈德森GIT插件0.7.3
- 混帳1.6 .3.2.1299.gee46c
謝謝,我剛剛遇到同樣的問題。看起來像哈德遜從屬驅動[;-)]正在期待像命令外殼一樣發出命令。 Git \ cmd在路徑中,但不在Git \ bin中。它歸結爲你如何稱呼事情。 – 2010-03-05 15:49:55
對我來說同樣的問題。在路徑中沒有git。 – 2010-03-18 20:49:24