[英]Configure GitHub on Jenkins
I've configured the GitHub plugin on Jenkins, but while adding repositry i'm getting the below error. 我已经在Jenkins上配置了GitHub插件,但是在添加存储库时出现以下错误。
Repository URL
Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/euphoriakabir/webservices.git HEAD
As @ANIL already said, seems to be that Git
tool is not properly configured in your Jenkins. 正如@ANIL已经说过的,似乎是您的Jenkins中没有正确配置
Git
工具。
So, you need to make sure that: 因此,您需要确保:
Manage Jenkins -> Global Tool Configuration -> Git
section you have the right path to Git binary (it can be a full path to your binary or just git
if you have configured the full path in the PATH
environment variable). Manage Jenkins -> Global Tool Configuration -> Git
部分中,您具有Git二进制文件的正确路径(如果您在PATH
环境变量中配置了完整路径,则它可以是二进制文件的完整路径,也可以是git
)。 我重新启动服务器,它为我工作:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.