嗨,我只想将我的项目从 github 配置到 jenkins 来生成 build.gradle 文件。
我收到以下错误
Failed to connect to repository : Command "/usr/bin/git ls-remote -h
https://github.com/xxxxx/yyyyy.git HEAD"
returned status code 128:
stdout:
stderr: error: The requested URL returned error: 403 Forbidden while
accessing https://github.com/xxxxx/yyyyy.git/info/refs
fatal: HTTP request failed
我还在全局工具配置中添加了 git 路径。我已经在linux centos 服务器中设置了jenkins。
我在 stackoverflow 中发现了一些类似的问题,但这并没有给出解决方案
谁能告诉我这可能有什么问题吗?
提前致谢
有点晚了,但这个解决方案对我有用。只需将 URL 更改为
https://github.com/xxxxx/yyyyy.git
to
https://[email protected] /cdn-cgi/l/email-protection/xxxxx/yyyyy.git
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)