解决:Failed to connect to repository : Error performing command: git.exe ls-remote -h xxxxxxx HEAD

在jenkins新建工程,配置源码管理时,发现输入gitlab的Repository URL,总会抛出一个错误:

后来在网上各种百度,终于找到了一篇比较靠谱的文章,顺着文章的提示,去Manage Jenkins—Global Tool Configuration里面查看

发现找不到git.exe,因为我的jenkins是装在本地的,git是cmder自带的,因此可能jenkins的环境变量下没有找到

这时候只需要拷贝一份本地的git.exe的绝对路径到 Path to Git executable 下,就可以了

原文地址:https://www.cnblogs.com/cnhkzyy/p/11020381.html

时间: 2024-10-10 14:46:30

解决:Failed to connect to repository : Error performing command: git.exe ls-remote -h xxxxxxx HEAD的相关文章

【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h

jenkins使用git源码管理报错:Failed to connect to repository:Error performing command:git.exe ls-remote-h 本机需要安装git,设置好路径之后,重启jenkins 如下图: 解决:在 系统管理-Global Tool Configuration 设置本地git.exe的路径.如下图:

Jenkins : Error performing command: git ls-remote -h

jenkins提示:Failed to connect to repository : Error performing command: git ls-remote -h jenkins服务器未安装git或者git版本过低 # rpm -qa | grep git linux-firmware-20150904-43.git6ebf5d5.el7.noarch net-tools-2.0-0.17.20131004git.el7.x86_64 lm_sensors-libs-3.4.0-4.2

解决;R语言使用sqldf库是报错"Failed to connect to database: Error: Access denied for user '..'@'localhost' (using password: NO) Error in !dbPreExists : invalid argument type"

原因:在使用sqldf时,不需要加载RMySQL库 解决方案:在控制台执行释放RMySQL库加载 detach("package:RMySQL", unload=T); 解决;R语言使用sqldf库是报错"Failed to connect to database: Error: Access denied for user '..'@'localhost' (using password: NO) Error in !dbPreExists : invalid argume

解决Failed to connect session for conifg 故障

服务器升级openssh之后jenkins构建报错了,报错信息如下: Failed to connet or change directory jenkins.plugins.publish_over.BapPublisherException:Failed to connect session for config.....Message [Algorithm negotiation fail] 升级前ssh版本:OpenSSH_5.3p1 升级后sshl版本:OpenSSH_6.8pl 解决

Jenkins连接git时出现“Failed to connect to repository : Command ... HEAD" returned status code 128:”的问题解决

网上说的解决方法如下: 其实生成ssh时不应该使用当前用户去生成ssh,而是使用jenkins这个用户去生成ssh,然后再去git服务器上配置你生成key,最后再jenkins上配置返回给你的key. 参考: http://www.jianshu.com/p/ed0edb93e234 http://stackoverflow.com/questions/21557998/jenkins-failed-to-connect-to-repository

jenkins添加git源码目录时报Error performing command错误

简介 这是我在构建一个自动化部署项目中遇到的一个异常 解决步骤: 1.进入的jenkins的home目录,执行下面命令生成公钥和私钥 [[email protected] .jenkins]# ssh-keygen -t dsa 2.查看生成的公钥 [[email protected] .ssh]# cat /root/.ssh/id_dsa.pub ssh-dss AAAAB3NzaC1kc3MAAACBAPrOu+b8/hTH4SVXO5/ewO0xKWnA6dW8YRxa3qFSwj/2U

【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误解决办法

  场景描述:被测系统是发布在远程服务器上的,假设IP是10.10.10.10,端口是8066,那么访问地址是http://10.10.10.10:8066/,在control机器上我设置了IP欺骗. 错误现象:在场景运行时出现大量Action.c(8): Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误. 官方的troubleshooting: 查看工具的tro

Eclipse解决Launch error: Failed to connect to remote VM [duplicate]

有时开启多个Eclipse之后,连接真机调试程序时在Controls控制台里面会出现Launch error: Failed to connect to remote VM [duplicate] ,DDMS输出里面会报con't bind to local 86XX 或者87xx debugger的错误,这是因为端口占用的问题 解决方案: 1.关闭eclipse 2.拔掉Usb连接线 3.关闭任务管理器中所有的Eclipse.exe进程 4.关闭adb.exe 5.重启eclipse,重新连上

error: failed to connect to the hypervisor error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory 解决办法

服务器版本:CentOS Linux release 7.4 Linux lb 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 参考:https://www.cnblogs.com/yogurtwu/p/9988974.html 注:在翻了很多baidu和google相关文章后,逐步排查,根据手动执行libvirtd命令出现的报错信息才查到解决方法.一路坑. 对装有k