繁体   English   中英

Jenkins不克隆git存储库

[英]Jenkins not cloning git repository

我试图运行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抛出了一些错误。

我猜您的Git存储库配置在您的项目中是错误的。

在此处输入图片说明

可能的解决方案;-尝试创建本地git存储库,并将路径指定为.git文件。

或者,如果您要存储在github,stash等远程位置,请使用url,pswd-从存储库管理软件获取

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM