我想将Jenkins本地路径提供给我的Git存储库。我使用git init
命令在该文件夹git repo中启动,但是当我在Jenkins配置页面中设置路径时,我得到:
Failed to connect to repository : Command "/usr/bin/git ls-remote -h
/Users/asd/Documents/workspace/mavenTest HEAD" returned status code 128:
stdout:
stderr: fatal: '/Users/asd/Documents/workspace/mavenTest' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
答案 0 :(得分:1)
尝试在“manager jenkins”下设置git安装目录的正确路径。在我的情况下,我在Windows中遇到了同样的问题,我将安装目录的路径配置为:
C:\ Users \用户名\应用程序数据\本地\ GitHub的\ PortableGit_randomnumber \ CMD \ gitk.cmd
已经向here询问了Windows。