[英]TeamCity and git repository with Visual Studio Team Services
I'm trying to configure TeamCity to build the project located on the Visual Studio Team Services with Git as VCS. 我正在尝试配置TeamCity以使用Git作为VCS构建位于Visual Studio Team Services上的项目。 The project contains spaces in the URL, so it looks like: https://mysrv.visualstudio.com/DefaultCollection/_git/some%20project 该项目在URL中包含空格,因此它看起来像: https : //mysrv.visualstudio.com/DefaultCollection/_git/some%20project
Clone from Visual Studio 2013 works fine, from command line too. 从Visual Studio 2013克隆也可以在命令行中正常工作。 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 当我在TeamCity中配置VCS Root并按下Test Connection按钮时,它表示建立了连接,但是当我尝试运行构建时,TeamCityt报告没有兼容的代理,并且在构建的Compatible Agents选项卡上请参阅消息: 隐式要求:在VCS Root:Git VS MySrv中定义的20项目
Is it possible to fix this issue? 有可能解决这个问题吗?
PS I tried to rename repository on VS Team Services, but it adds to the Url collection name with the spaces :( PS我尝试重命名VS Team Services上的存储库,但它添加了Url集合名称的空格:(
Do you still get this behaviour, if you try to use unescaped url (without %20 replacing space)? 如果您尝试使用未转义的URL(不使用%20替换空格),您是否仍会遇到此行为?
Another option is to escape '%' sign itself with another '%' - so escaped url of your repository will look like this https://mysrv.visualstudio.com/DefaultCollection/_git/some%%20project 另一个选择是使用另一个'%'来转义'%'符号本身 - 因此您的存储库的转义网址将如下所示:https://mysrv.visualstudio.com/DefaultCollection/_git/some%%20project
I also had this issue: there were two url-encoded spaces ( %20
) in my Git repo url, so the text in between the two %
signs was being treated as a TeamCity variable, resulting in the error Parameter "20Text/Between/the/spaces" is undefined.
我也有这个问题:我的Git repo url中有两个url编码的空格( %20
),因此两个%
符号之间的文本被视为TeamCity变量,导致错误Parameter "20Text/Between/the/spaces" is undefined.
Doubling-up the %
characters to escape them as per Oleg Rybak's recommendation fixed this. 根据Oleg Rybak的建议修正了这个,将%
字符加倍以逃脱它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.