Unable to Run Build on Hudson Using Git

萝らか妹 提交于 2019-12-12 03:03:24

问题


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)

回答1:


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



来源:https://stackoverflow.com/questions/8786023/unable-to-run-build-on-hudson-using-git

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!