fatal: Could not read from remote repository.error in using jenkins

岁酱吖の 提交于 2019-12-23 04:27:08

问题


I am using Jenkins to build from my git remote repository.
What am I suppose to provide in the repo url field since I am using remote local system for cloning and building.
Last time I give the clone command in the field and I got the error:

stderr: fatal: '//se12/adempiere370new' 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.

What am I actually suppose to give in the url field?


回答1:


You need to make sure the user running the Jenkins Job has the right to access the remote folder which represents your remote repo monitored by Jenkins.

If you are on Windows (as your previous question tends to indicate), the path should be:

\\se12\adempiere370new

So make sure the user running Jenkins can do a dir \\se12\adempiere370new

The OP Tony Davis mentions //se12/adempiere370new works too, but the command must be git clone //se12/adempiere370new, without any '$' in front of it.



来源:https://stackoverflow.com/questions/22008186/fatal-could-not-read-from-remote-repository-error-in-using-jenkins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!