jenkins配置git出现ERROR: Timeout after 10 minutes 同时命令行出现:Enter passphrase for key 的提示
生活随笔
收集整理的這篇文章主要介紹了
jenkins配置git出现ERROR: Timeout after 10 minutes 同时命令行出现:Enter passphrase for key 的提示
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在jenkins配置git,如下:
配置好之后,點擊立即構建,等了很久出現如下錯誤:
ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from liyuanhong@localhost:/Users/liyuanhong/project/git_repro/crashTest.gitat hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:806)at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1070)at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101)at hudson.scm.SCM.checkout(SCM.java:495)at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)at hudson.model.Run.execute(Run.java:1728)at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)at hudson.model.ResourceController.execute(ResourceController.java:98)at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress liyuanhong@localhost:/Users/liyuanhong/project/git_repro/crashTest.git +refs/heads/*:refs/remotes/origin/*" returned status code 128: stdout: stderr: Permission denied, please try again. packet_write_wait: Connection to ::1 port 22: Broken pipe fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists.at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1793)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1519)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:804)... 11 more ERROR: null Finished: FAILURE后來發現在啟動jenkins的終端里面出現如下信息:
Enter passphrase for key '/var/folders/vy/9r15p_192llf0sp092b3dzxw0000gn/T/ssh8620142580683014197key': Enter passphrase for key '/var/folders/vy/9r15p_192llf0sp092b3dzxw0000gn/T/ssh8348919029967460681key': Enter passphrase for key '/var/folders/vy/9r15p_192llf0sp092b3dzxw0000gn/T/ssh8676457670984005808key':?
解決方法,進入用戶主目錄的里的 .ssh 目錄,新建一個authorized_keys 文件;把jenkins配置用戶的公鑰粘貼進去,再次點擊構建,構建成功
總結
以上是生活随笔為你收集整理的jenkins配置git出现ERROR: Timeout after 10 minutes 同时命令行出现:Enter passphrase for key 的提示的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux下xampp(apache)中
- 下一篇: Error:org.gradle.api