在具有相同凭据的同一台计算机上的Windows上使用github可以正常工作。可以拉/克隆。
但是,teamcity作为Windows服务安装在同一台计算机上,返回以下错误
List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/my-private-repo.git: not authorized
在teamcity中,在项目VCS Root中,如果身份验证方法基于ssh公钥/私钥,则提取URL应该类似于git@github.com:.../repository.git
。使用https://
在获取URL导致该错误消息:
列出远程引用失败:org.eclipse.jgit.errors.TransportException ..
发生。
我尝试了ssh和https仍然出现错误。
List remote refs failed: org.eclipse.jgit.errors.TransportException: https://gitlab.com/test-everyone/test-devops/test-it-processes.git: authentication not supported
我的代码在gitlab
在我的情况下,我的存储库不使用用户名/密码,但使用用户名/令牌进行身份验证。