2015-07-10 50 views
0

我是jenkins的新手,我试图在jenkins中创建一份工作。我已经把我的项目推到github上,并且向jenkins提供了github服务器的路径,但是当我尝试构建这个工作时,它显示错误而不是geting build ....请帮助解决这个问题...我无法在github上的jenkins上创建作业

这是我收到的例外---

Started by user anonymous 
Building in workspace C:\Users\Rishi\.jenkins\jobs\Spring\workspace 
> git.exe rev-parse --is-inside-work-tree # timeout=10 
Fetching changes from the remote Git repository 
> git.exe config remote.origin.url [email protected]:rishi1020/SpringMVC# 
timeout=10 
Fetching upstream changes from [email protected]:rishi1020/SpringMVC 
> git.exe --version # timeout=10 
using GIT_SSH to set credentials 
> git.exe -c core.askpass=true fetch --tags --progress [email protected]:rishi1020/SpringMVC +refs/heads/*:refs/remotes/origin/* 
ERROR: Timeout after 10 minutes 
ERROR: Error fetching remote repo 'origin' 
+0

你得到一个超时。请检查您的机器是否可以访问存储库。 – Seeker

回答

0

如果你只需要从GitHub库获取,无需使用ssh(这可能需要适当的私有/公共SSH密钥的功能)。

使用HTTPS URL,它不需要任何身份验证(拉)

https://github.com/rishi1020/SpringMVC 
+0

好吧,我会尝试,但我已经配置了公钥ssh ... –

+0

与ssh和詹金斯的问题是,经常詹金斯不使用相同的帐户作为您设置您的ssh密钥。由于您不需要通过身份验证来获取公共GitHub仓库,您可以跳过ssh并使用HTTPS。 – VonC