簡體   English   中英

無法使用Git在Hudson上運行構建

[英]Unable to Run Build on Hudson Using Git

我配置了所有東西並嘗試運行構建,但出現以下錯誤,有人可以幫我解決這個問題。

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)

由於這是一個私有存儲庫,因此hudson無法連接,因為所使用的ssh密鑰正在使用釋義進行身份驗證,因為hudson無法插入身份驗證密鑰,因此無法進行連接。

但是,在嘗試執行以下步驟之前-cf- Jenkins無法在Windows上通過Git / SSH克隆Git存儲庫 在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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM