TeamCity和git存储库与Visual Studio团队服务

编程入门 行业动态 更新时间:2024-10-23 17:23:32
本文介绍了TeamCity和git存储库与Visual Studio团队服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图配置TeamCity,以Git作为VCS来构建位于Visual Studio Team Services上的项目。 该项目在URL中包含空格,因此它看起来像: mysrv.visualstudio/DefaultCollection/_git/some%20project

从Visual Studio 2013克隆也可以在命令行中正常工作。 当我在TeamCity中配置VCS Root并按下测试连接按钮时,它表示建立了连接,但是当我尝试运行构建TeamCityt报告没有兼容代理时,并且在兼容代理选项卡上我看到这样的信息: 隐式需求:20 VCS中定义的项目根目录:Git VS MySrv

是否有可能解决这个问题?

PS我尝试在VS Team Services上重命名存储库,但它使用空格添加到Url集合名称中:( p> 仍然得到这种行为,如果你尝试使用未转义的url(不用%20替换空格)?

另一种选择是使用另一个'%'转义'%' - 因此您的存储库的转义网址将如下所示: mysrv.visualstudio/DefaultCollection/_git/一些%% 20项目

I'm trying to configure TeamCity to build the project located on the Visual Studio Team Services with Git as VCS. The project contains spaces in the URL, so it looks like: mysrv.visualstudio/DefaultCollection/_git/some%20project

Clone from Visual Studio 2013 works fine, from command line too. When I'm configuring VCS Root in TeamCity and press the Test Connection button it says that connection established, but when I'm trying to run the build TeamCityt reports that there is no compatible agents, and on the Compatible Agents tab of the build I see the message: Implicit requirements: 20project defined in VCS Root: Git VS MySrv

Is it possible to fix this issue?

P.S. I tried to rename repository on VS Team Services, but it adds to the Url collection name with the spaces :(

解决方案

Do you still get this behaviour, if you try to use unescaped url (without %20 replacing space)?

Another option is to escape '%' sign itself with another '%' - so escaped url of your repository will look like this mysrv.visualstudio/DefaultCollection/_git/some%%20project

更多推荐

TeamCity和git存储库与Visual Studio团队服务

本文发布于:2023-11-14 00:03:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585660.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:团队   git   TeamCity   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!