0

I want to give Jenkins local path to my Git repository. I initiated in that folder git repo with git init command, but when I set a path in Jenkins config page I get :

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.
4

1 回答 1

1

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

C:\Users\用户名\AppData\Local\GitHub\PortableGit_randomnumber\cmd\gitk.cmd

已经在这里问过窗户。

于 2013-08-19T11:53:23.807 回答