2014-10-02 99 views

回答

0

我最終得到了這個工作,確保你的jenkins用戶可以訪問你的gitlab回購。

上傳ssh gitlab的關鍵實例,那麼你就可以從詹金斯克隆。

Started by user anonymous 
Building in workspace /home/rob/.jenkins/jobs/Test/workspace 
Cloning the remote Git repository 
Cloning repository [email protected]:team/repo.git 
> git init /home/rob/.jenkins/jobs/Test/workspace # timeout=10 
Fetching upstream changes from [email protected]:team/repo.git 
> git --version # timeout=10 
> git fetch --tags --progress [email protected]:team/repo.git +refs/heads/*:refs/remotes/origin/* 
> git config remote.origin.url [email protected]:team/repo.git # timeout=10 
> git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 
> git config remote.origin.url [email protected]:team/repo.git # timeout=10 
Fetching upstream changes from [email protected]:team/repo.git 
> git fetch --tags --progress [email protected]:team/repo.git +refs/heads/*:refs/remotes/origin/* 
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10 
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 
Checking out Revision 73c78ce6b86711b24aca184fcaa796e00a7a1ece (refs/remotes/origin/master) 
> git config core.sparsecheckout # timeout=10 
> git checkout -f 73c78ce6b86711b24aca184fcaa796e00a7a1ece 
First time build. Skipping changelog. 
Finished: SUCCESS