简体   繁体   English

Jenkins Git集成问题

[英]Jenkins Git integration issue

Installed Jenkins, Git plugin (window platform), then I will create a new item (maven project) in Jenkins. 安装了Jenkins,Git插件(窗口平台),然后我将在Jenkins中创建一个新项目(Maven项目)。

While configure the git I'm getting the error 在配置git时出现错误

Project- Configure – Source code management – git Enter the repository url : https://github.com/zzzz/Sample.git 项目-配置–源代码管理– git输入存储库URL: https://github.com/zzzz/Sample.git : https://github.com/zzzz/Sample.git

Getting below error 低于错误

Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/zzzz/Sample.git HEAD

Jenkins – Manage Jenkins –configure system Jenkins –管理Jenkins –配置系统

git 吉特

Path to Git executable = git.exe In this section getting the below error Git可执行文件的路径= git.exe在本节中出现以下错误

    There's no such executable git.exe in PATH: C:/ProgramData/Oracle/Java/javapath, C:/Windows/system32, C:/Windows, C:/Windows/System32/Wbem, C:/Windows/System32/WindowsPowerShell/v1.0/, C:/Program Files/Microsoft SQL Server/100/Tools/Binn/,
 C:/Program Files/Microsoft SQL Server/100/DTS/Binn/, C:/Program Files/Microsoft SQL Server/100/Tools/Binn/VSShell/Common7/IDE/, C:/Program Files/Microsoft SQL Server/110/Tools/Binn/ManagementStudio/, C:/Program Files/Microsoft SQL Server/110/Tools/Binn/, C:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/PrivateAssemblies/, C:/Program Files/Microsoft SQL Server/110/DTS/Binn/,  C:/Program Files/Java/bin, %M2_HOME%/bin, C:/Program Files/glassfish-4.0/bin.

Please help me to resolve. 请帮我解决。

For me it looks like, you don't have the Path, where git is installed in your Windows Path, so jenkins doesnt find git.exe . 对我而言,您似乎没有Windows路径中安装了git的路径,因此jenkins找不到git.exe To resolve, you should look for your git installation and add the folder with git.exe inside to System path. 要解决此问题,您应该查找git安装并将其中包含git.exe的文件夹添加到系统路径中。

Go to Manage Jenkins > Global Tools Configuration . 转到管理Jenkins > 全局工具配置

Reconfigure your git executable path. 重新配置您的git可执行文件路径。 Find the path where git is installed on your local machine and add this path upto the git.exe file in the required input field.. 在本地计算机上找到git的安装路径,并将此路径添加到git.exe文件中的必填字段中。

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

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