Jenkins on OS X本地Git存储库URL
我见过类似的问题,但URL结构似乎不适合我,我得到了一个稍微不同的错误。我觉得我在这里遗漏了一些简单的东西,那么对于本地OSX路径,我会使用什么存储库URL呢?它确实包含一个活动的git repo,并且在Github上有一个远程站点注意我不想使用Github remote,因为我正在测试本地完成提交时的构建触发器 存储库URLJenkins on OS X本地Git存储库URL,git,macos,jenkins,Git,Macos,Jenkins,我见过类似的问题,但URL结构似乎不适合我,我得到了一个稍微不同的错误。我觉得我在这里遗漏了一些简单的东西,那么对于本地OSX路径,我会使用什么存储库URL呢?它确实包含一个活动的git repo,并且在Github上有一个远程站点注意我不想使用Github remote,因为我正在测试本地完成提交时的构建触发器 存储库URL file:///Users//Documents/ 错误 Failed to connect to repository : Command "git -c core.a
file:///Users//Documents/
错误
Failed to connect to repository : Command "git -c core.askpass=true ls-remote -h file:///Users/<myname>/Documents/<myproject> HEAD" returned status code 128:
stdout:
stderr: fatal: '/Users/<myname>/Documents/<myproject>' 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.
无法连接到存储库:命令“git-c core.askpass=true ls remote-hfile:///Users//Documents/ “头”返回状态代码128:
标准:
stderr:fatal:“/Users//Documents/”似乎不是git存储库
致命:无法从远程存储库读取。
请确保您拥有正确的访问权限
并且存储库存在。
2015年10月12日更新
为了更详细地阐述这一点,我看到Jenkins中的GIT插件说明引用了有效的URL,以.GIT
结尾。在所讨论的目录中,我确实有.git
目录,并且也尝试过这种结构(例如file:///Users/username/Documents/blog.git
),但这也失败了。我觉得我错过了一些东西,但却找不到它。感谢您的帮助