我配置了所有东西,并试图运行构建我得到以下错误 任何人都可以帮我解决这个问题。
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)
答案 0 :(得分:1)
由于这是一个私有存储库,hudson无法连接,因为使用的ssh-key使用释义进行身份验证,因为无法插入身份验证密钥hudson失败。
但是,在尝试以下步骤之前 - cf - Jenkins can not clone Git repository over Git/SSH on Windows。在stackoverflow中问到同样的问题,用户在hudson上使用git.cmd而不是git.exe成功了,你也可以试试吗。
如果无法解决,请尝试从ssh-key中删除释义并重试。 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