简体   繁体   English

无法使用Git在Hudson上运行构建

[英]Unable to Run Build on Hudson Using Git

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)

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. 由于这是一个私有存储库,因此hudson无法连接,因为所使用的ssh密钥正在使用释义进行身份验证,因为hudson无法插入身份验证密钥,因此无法进行连接。

However, before trying the step below - cf - Jenkins can not clone Git repository over Git/SSH on Windows . 但是,在尝试执行以下步骤之前-cf- Jenkins无法在Windows上通过Git / SSH克隆Git存储库 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. 在stackoverflow中问了同样的问题,用户在hudson上成功使用git.cmd而不是git.exe,您也可以尝试相同的方法。

If that does not resolve, please try by removing the paraphrase from your ssh-key and retrying. 如果仍不能解决问题,请尝试从ssh-key中删除释义并重试。 cf - http://www.lucasward.net/2011/05/tips-for-connecting-to-github-private.html cf- http://www.lucasward.net/2011/05/tips-for-connecting-to-github-private.html

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM