哈德森和吉米斯

时间:2011-08-24 01:04:41

标签: git hudson gitosis

我正试图让Gitosis和Hudson一起玩得很开心。我可以通过编辑〜/ .ssh / authorized_keys并将我的公钥放在该文件中,从而无需密码访问即可从存储库中取出。但是,每当我尝试运行我的Hudson项目时,我立即得到下面列出的错误。任何人都可以帮助我吗?

由于

PS从命令行

可以正常工作

对不起,如果这些问题看起来很基本,我来自GitHub背景,之前从未使用过gitosis

Started by user anonymous
Checkout:workspace / C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace - hudson.remoting.LocalChannel@13b8b4d
Using strategy: Default
Checkout:workspace / C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace - hudson.remoting.LocalChannel@13b8b4d
Cloning the remote Git repository
Cloning repository origin
ERROR: Failed to clean the workspace
java.io.IOException: Unable to delete C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace
at hudson.Util.deleteFile(Util.java:263)
at hudson.Util.deleteRecursive(Util.java:305)
at hudson.FilePath$9.invoke(FilePath.java:826)
at hudson.FilePath$9.invoke(FilePath.java:824)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.FilePath.deleteRecursive(FilePath.java:824)
at hudson.plugins.git.GitAPI.clone(GitAPI.java:208)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:835)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:782)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:782)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:568)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:508)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1367)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
ERROR: Error cloning remote repo 'origin' : Failed to delete workspace
ERROR: Cause: Unable to delete C:\Documents and Settings\hudson\.hudson\jobs\<job>\workspace
Trying next repository
ERROR: Could not clone repository
FATAL: Could not clone
hudson.plugins.git.GitException: Could not clone
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:850)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:782)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:782)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:568)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1217)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:508)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1367)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)

2 个答案:

答案 0 :(得分:1)

您需要使用Pageant之类的内容来保持密钥的加载。您仍然需要输入密码,但只需输入一次。

答案 1 :(得分:0)

我已经弄明白了。事实证明,这只是保持目录的另一个过程。当我重新启动机器时,它现在工作正常。