问题
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