我似乎無法得到在Jenkins上工作的git插件。已經搜索並嘗試了所有可能的解決方案。在Windows 2003服務器上的Jenkins git插件
我已經正確設置了Git,Putty plink,環境變量,ssh密鑰。
從命令行或Git Bash工作正常。我可以運行Jenkins試圖運行的所有命令並且沒有任何問題。
我有一個.ssh文件夾的副本到c:\ Documents and Settings \ Administrator和C:\ Program Files \ Git。
詹金斯windows服務正在管理員帳戶中運行,與本地系統相同。
當詹金斯啓動構建我不斷收到錯誤:沒有支持的身份驗證方法可用。這看起來像詹金斯無法找到.ssh文件夾中的鍵。
希望有人能幫忙。
Started by user anonymous
Building in workspace C:\websites\companya\ci\ci1build
Checkout:ci1build/C:\websites\companya\ci\ci1build - [email protected]
Using strategy: Default
Fetching changes from 1 remote Git repository
Fetching upstream changes from [email protected]:companya/companya.git
ERROR: Problem fetching from origin/origin - could be unavailable. Continuing anyway
hudson.plugins.git.GitException: Command "git.exe fetch -t [email protected]:companya/companya.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: trace: built-in: git 'fetch' '-t' '[email protected]:companya/companya.git' '+refs/heads/*:refs/remotes/origin/*'
trace: run_command: 'C:\Program Files\PuTTY\plink.exe' '-batch' '[email protected]' 'git-upload-pack '\''companya/companya.git'\'''
FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: The remote end hung up unexpectedly
at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:818)
at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:780)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:196)
at hudson.plugins.git.GitAPI.fetch(GitAPI.java:1026)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:812)
at hudson.plugins.git.GitSCM.access$100(GitSCM.java:90)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1096)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1245)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1488)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
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$2.invoke(GitSCM.java:1103)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064)
at hudson.FilePath.act(FilePath.java:842)
at hudson.FilePath.act(FilePath.java:824)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1245)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494)
at hudson.model.Run.execute(Run.java:1488)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:236)
不要以爲你可以運行它來自Windows中的命令行。引發異常。 – theog 2012-07-12 01:11:58