2013-10-21 28 views
0

克隆我停留在控制台以下消息:詹金斯作业无法从GitHub

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 - [email protected] 
Using strategy: Default 
Cloning the remote Git repository 
Cloning repository [email protected]:myusername/game-of-life.git 
git --version 
git version 1.8.4.msysgit.0 

我已经加入到Git的路径。 在詹金斯我添加了JDK和Maven主目录,并添加路径到Git可执行文件:

C:\Program Files (x86)\Git\bin\git.exe 

下SCM詹金斯作业的配置,我增加的Git回购:

[email protected]名称:myusername /game-of-life.git

我也有钥匙Github上和验证:

$ ssh -T [email protected] 
Hi myusername! You've successfully authenticated, but GitHub does not provide shell access 

在詹金斯网址我有:

http://localhost:8080/jenkins/ 

我不知道我缺少的是什么!

回答

1

不知道你是如何在你的机器上设置Jenkins的,但默认情况下,Jenkins Windows安装程序将Jenkins设置为在Windows上作为服务运行,作为“本地系统帐户”运行,而不是用户帐户。由于“本地系统帐户”没有设置SSH密钥或known_hosts,因此在构建过程中“git clone”会挂起。看看Configuring Jenkins to use OpenSSH bundled with msysgit Windows installer

+0

我没有使用它作为Windows服务。我在tomcat中部署了jenkins.war – TastyCode

+0

从技术上讲,这是同样的问题。很可能你运行Tomcat而不是你的用户帐户。 –

+0

好的我不能让它与部署到tomcat的工作,但能够得到它与java -jar jenkins.war配合使用码头工作! – TastyCode