TeamCity 无法获取托管在 Visual Studio Team Services 中的 Git 存储库
TeamCity unable to fetch Git repository hosted in Visual Studio Team Services
我正在为 Git 存储库托管在 Visual Studio 团队服务中的新项目配置 TeamCity(运行 在 Windows 服务器上)。配置类似于我们在那里托管的其他项目。但是,与其他项目不同,该项目似乎无法获取存储库。它正在抱怨缺少一些 git-upload-pack
服务。
测试连接时出现的错误:
Test connection failed in SomeProject :: Develop Build
List remote refs failed: cannot locate repository at https://***.visualstudio.com/DefaultCollection/_git/SomeProject: https://***.visualstudio.com/DefaultCollection/_git/SomeProject/info/refs?service=git-upload-pack not found
可能是什么原因导致这个项目出错,而另一个却没有?另外,我该如何解决?非常感谢。
确保安装最新的 TeamCity 9.0.3,它修复了一些 git 连接错误。
如果您之前重命名了项目。解决方法是在您的项目中编辑 .git/config 并确保 VSTS 的远程 URL 反映更新后的项目名称。 git-upload-pack not found
结果我忘了在 Visual Studio Team Services 中为我们的 BuildUser 授予权限。 BuildUser 链接到 TeamCity,因此 TC 无法获取存储库。
我正在为 Git 存储库托管在 Visual Studio 团队服务中的新项目配置 TeamCity(运行 在 Windows 服务器上)。配置类似于我们在那里托管的其他项目。但是,与其他项目不同,该项目似乎无法获取存储库。它正在抱怨缺少一些 git-upload-pack
服务。
测试连接时出现的错误:
Test connection failed in SomeProject :: Develop Build
List remote refs failed: cannot locate repository at https://***.visualstudio.com/DefaultCollection/_git/SomeProject: https://***.visualstudio.com/DefaultCollection/_git/SomeProject/info/refs?service=git-upload-pack not found
可能是什么原因导致这个项目出错,而另一个却没有?另外,我该如何解决?非常感谢。
确保安装最新的 TeamCity 9.0.3,它修复了一些 git 连接错误。
如果您之前重命名了项目。解决方法是在您的项目中编辑 .git/config 并确保 VSTS 的远程 URL 反映更新后的项目名称。 git-upload-pack not found
结果我忘了在 Visual Studio Team Services 中为我们的 BuildUser 授予权限。 BuildUser 链接到 TeamCity,因此 TC 无法获取存储库。