在使用Jenkins进行项目自动部署的时候,报错无法连接git仓库。

Failed to connect to repository : Command "git.exe ls-remote -h https://git.oschina.net/sinama/bboss3.git HEAD" returned status code 128:
stdout: 
stderr: remote: Not Found
fatal: repository 'your github url' not found

原因是没有在页面登录GitHub账号。
解决:添加Credentials, 单击Add按钮, Kind字段选择Username with password, 输入git的用户名和密码, 重新填写Repository URL就可以了

Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐