无法使用 Git 在 Hudson 上运行构建
我配置了所有内容并尝试运行构建,但出现以下错误 谁能帮我解决这个问题。
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 [email protected]: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 [email protected]: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)
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 [email protected]: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 [email protected]: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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于这是一个私有存储库,hudson 无法连接,因为使用的 ssh-key 使用释义进行身份验证,因为无法插入身份验证密钥 hudson 失败。
但是,在尝试以下步骤之前 - cf - Jenkins 无法在 Windows 上通过 Git/SSH 克隆 Git 存储库。在 stackoverflow 中提出了同样的问题,用户在 hudson 上使用 git.cmd 而不是 git.exe 取得了成功,您也可以尝试同样的操作吗?
如果仍无法解决问题,请尝试从 ssh 密钥中删除该释义并重试。 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
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.
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.
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
Finally, an alternative method using hooks - http://fourkitchens.com/blog/2011/09/20/trigger-jenkins-builds-pushing-github