Jenkins没有克隆git存储库

时间:2015-01-13 09:54:23

标签: git jenkins

我正在尝试运行Jenkins作业,该作业从Git存储库中检出代码。我正在使用Git插件和Credentials插件进行配置。但是,当我运行该作业时,它失败并出现以下错误。

Started by user anonymous
Building in workspace C:\Apps\Jenkins\jobs\Test\workspace
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository http://mygitrepo/project/myproject.git
> C:\Apps\Git\bin\git.exe init C:\Apps\Jenkins\jobs\Test\workspace\test # timeout=10
Fetching upstream changes from http://mygitrepo/project/myproject.git
> C:\Apps\Git\bin\git.exe --version # timeout=10
using .gitcredentials to set credentials
> C:\Apps\Git\bin\git.exe config --local credential.helper store --file=\"E:\TEMP\git2078292677000877754.credentials\" # timeout=10
> C:\Apps\Git\bin\git.exe -c core.askpass=true fetch --tags --progress http://mygitrepo/project/myproject.git +refs/heads/*:refs/remotes/configurator/*
> C:\Apps\Git\bin\git.exe config --local --remove-section credential # timeout=10
ERROR: Error cloning remote repo 'configurator'
ERROR: Error cloning remote repo 'configurator'
Finished: FAILURE

如何解决此问题?

!Git配置1

更新 问题在于藏匿。当Jenkins克隆时,Stash抛出了一些错误。

1 个答案:

答案 0 :(得分:0)

我猜你的Git Repository配置在你的项目中是错误的。

enter image description here

可行的解决方案; - 尝试创建一个本地git存储库并将路径提供给.git文件。

或者如果你在github,stash等远程位置存储。 使用从存储库管理软件获取的url,pswd