詹金斯在Mac上看不到Git repositorium

时间:2013-08-19 11:11:08

标签: git jenkins

我想将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.

1 个答案:

答案 0 :(得分:1)

尝试在“manager jenkins”下设置git安装目录的正确路径。在我的情况下,我在Windows中遇到了同样的问题,我将安装目录的路径配置为:

  

C:\ Users \用户名\应用程序数据\本地\ GitHub的\ PortableGit_randomnumber \ CMD \ gitk.cmd

已经向here询问了Windows。