错误:
Failed to connect to repository : Command "/usr/bin/git ls-remote -h file:///home/myuser/path/to/project HEAD" returned status code 128:
stdout:
stderr: fatal: 'home/myuser/path/to/project' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)
我尝试过以下方法:
chmod 777 到repo文件夹(包含.git目录的文件夹) chowned以jenkins:jenkins在回购文件夹当我运行上面的命令:/usr/bin/git ls-remote -h file:///home/myuser/path/to/project HEAD在cmd上我得到了分支.
我的问题是:
git ls-remote -h ...命令应该被调用git clone ...?我的环境:
RHEL 5.9
Jenkins 1.519作为服务安装(没有Web容器)