我被困在控制台中的以下消息:
Started by user anonymous
Building in workspace C:\Users\myusername\.jenkins\jobs\game-of-life\workspace
Checkout:workspace / C:\Users\myusername\.jenkins\jobs\game-of-life\workspace - hudson.remoting.LocalChannel@5f06425e
Using strategy: Default
Cloning the remote Git repository
Cloning repository git@github.com:myusername/game-of-life.git
git --version
git version 1.8.4.msysgit.0我在小径上加了git。在Jenkins下,我添加了JDK和Maven主目录,并将路径添加到Git可执行文件,如下所示:
C:\Program Files (x86)\Git\bin\git.exe在Jenkins的SCM作业配置下,我添加了Git:
git@github.com:我的用户名/生活游戏.git
我还拥有Github的密钥,并验证了:
$ ssh -T git@github.com
Hi myusername! You've successfully authenticated, but GitHub does not provide shell access在Jenkins URL下,我有:
http://localhost:8080/jenkins/我不知道我错过了什么!
发布于 2013-10-21 07:00:13
不确定如何在计算机上设置Jenkins,但默认情况下,Jenkins Windows安装程序将Jenkins设置为在Windows上作为服务运行,该服务作为“本地系统帐户”运行,而不是用户帐户。由于“本地系统帐户”没有设置SSH键或known_hosts,“git克隆”将在构建过程中挂起。看看配置Jenkins使用与msysgit Windows捆绑的OpenSSH
https://stackoverflow.com/questions/19486816
复制相似问题