无法使用Git在Hudson上运行构建 [英] Unable to Run Build on Hudson Using Git

查看:140
本文介绍了无法使用Git在Hudson上运行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我配置了所有内容并尝试运行构建,但出现以下错误 有人能帮我这个忙吗?

I configured every thing and tried to run the build i am getting the below error could anyone help me out on this .

Started by user anonymous
Checkout:workspace / C:\Documents and Settings\Pradeep\.hudson\jobs\test\workspace -  hudson.remoting.LocalChannel@6ea3fe
Using strategy: Default
Checkout:workspace / C:\Documents and Settings\Pradeep\.hudson\jobs\test\workspace - hudson.remoting.LocalChannel@6ea3fe
Fetching changes from the remote Git repository
Fetching upstream changes from git@github.com:xxxx/xxx.git
ERROR: Problem fetching from origin / origin - could be unavailable. Continuing anyway
ERROR:  (Underlying report) : Error performing command: C:\Program Files\Git\bin fetch -t git@github.com:xxxx/xxx.git +refs/heads/*:refs/remotes/origin/*
Cannot run program "C:\Program Files\Git\bin" (in directory "C:\Documents and Settings\Pradeep\.hudson\jobs\test\workspace"): CreateProcess error=5, Access is denied
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$3.invoke(GitSCM.java:887)
at hudson.plugins.git.GitSCM$3.invoke(GitSCM.java:845)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.git.GitSCM.gerRevisionToBuild(GitSCM.java:845)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:622)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1479)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:507)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1366)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)

推荐答案

由于这是一个私有存储库,由于无法使用插入的ssh密钥使用释义进行身份验证,因此hudson无法连接.身份验证密钥hudson失败.

As this is a private repository, hudson is unable to connect as the ssh-key used is using a paraphrase for authenticating, since there is no way to insert the authentication key hudson fails.

但是,在尝试以下步骤之前-cf-

However, before trying the step below - cf - Jenkins can not clone Git repository over Git/SSH on Windows . The same question asked in stackoverflow, the user had success using git.cmd rather than git.exe on hudson, can you also try the same.

如果仍不能解决问题,请尝试从ssh-key中删除释义,然后重试. cf- http://www.lucasward. net/2011/05/tips-for-connecting-to-github-private.html

If that does not resolve, please try by removing the paraphrase from your ssh-key and retrying. cf - http://www.lucasward.net/2011/05/tips-for-connecting-to-github-private.html

最后,使用钩子的另一种方法- http ://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github

Finally, an alternative method using hooks - http://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github

这篇关于无法使用Git在Hudson上运行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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