2015-07-10 107 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

相關問題