简体   繁体   English

SVN更新在TFS2017上被打破

[英]SVN update broken on tfs2017

Since we upgraded our TFS-Servers from 2015 to 2017, the SVN update command is not working anymore. 自2015年将TFS服务器升级到2017年以来,SVN update命令不再起作用。 I installed two TFS to reproduce the issue. 我安装了两个TFS以重现该问题。 On one I installed 2015 and upgraded it to 2017 and another got a fresh 2017 installation. 我在其中一个上安装了2015,并将其升级到2017,另一个则安装了全新的2017。 On both machines and with 2017 as well as 2017U1 the problem and the error message is the same. 在两台机器上以及2017和2017U1上,问题和错误消息都是相同的。 Has anybody a soloution or workaround for this? 有任何解决方案或解决方法吗? Currently we have to checkout the whole repository with every build, which consumes a lot of time. 当前,我们必须在每次构建时检出整个存储库,这会花费大量时间。
构建概述 更新日志

EDIT: We are using apache SVN server version 1.6.12 with svn:// access. 编辑:我们正在使用svn://访问的apache SVN服务器版本1.6.12。

Tag for SEO: One or more errors occurred. SEO标签:发生一个或多个错误。 (The startIndex argument must be greater than or equal to zero.) (startIndex参数必须大于或等于零。)

I had the same error appearing, but not with every build. 我出现了相同的错误,但不是每个版本都出现。

After some trial and error, discovered that this error occurs when there is a directory generated under the $(Build.SourcesDirectory) (ie _work\\{someNumber}\\s) that does not contain an svn workspace. 经过反复试验,发现在$(Build.SourcesDirectory)下生成的目录(即_work \\ {someNumber} \\ s)下不包含svn工作区的目录时,会发生此错误。 For us it was the TestResults folder created by the VS Test task - Related issue in vsts-tasks github 对我们来说,这是VS Test任务创建的TestResults文件夹-vsts-tasks github中的相关问题

Adding a step at the end of the build to remove the generated directory fixed it for us. 在构建末尾添加一个步骤来删除生成的目录,这对我们来说已经解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM