简体   繁体   English

Jenkins不克隆git存储库

[英]Jenkins not cloning git repository

I was trying to run a Jenkins job which checks out code from a Git repository. 我试图运行Jenkins作业,该作业从Git存储库中检出代码。 I am using Git plugin and Credentials plugin for configuring it. 我正在使用Git插件和Credentials插件进行配置。 However when I run the job, it is failing with the following error. 但是,当我运行该作业时,它失败并显示以下错误。

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

How do I fix this issue? 如何解决此问题?

!Git configuration 1 !Git配置1

Update The issue was with stash. 更新问题是藏匿。 Stash was throwing some error when Jenkins was cloning. Jenkins克隆时,Stash抛出了一些错误。

I Guess your Git Repository configuration is Wrong in your project. 我猜您的Git存储库配置在您的项目中是错误的。

在此处输入图片说明

Posssible solution;- Try to create an local git repository and give path upto .git file. 可能的解决方案;-尝试创建本地git存储库,并将路径指定为.git文件。

Or if you are storing at remote location like in github,stash etc.. Use url,pswd-obtained from repository management software 或者,如果您要存储在github,stash等远程位置,请使用url,pswd-从存储库管理软件获取

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

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