简体   繁体   English

TFS2012 签入异常

[英]TFS2012 CheckinException

I have an issue using Builds i keep getting this error:我在使用 Builds 时遇到问题,我不断收到此错误:

 Exception Message: TF10141: No files checked in: resolve the conflicts and try again. (type CheckinException)
Exception Stack Trace:    at Microsoft.TeamFoundation.VersionControl.Client.Client.ReportCheckInConflictsFailuresAndThrow(Workspace workspace, CheckinResult checkinResult, Failure[] conflicts, Failure[] failures, Boolean noAutoResolve, Int32 operationId)
   at Microsoft.TeamFoundation.VersionControl.Client.Workspace.CheckInInternal(WorkspaceCheckInParameters parameters, Int32 operationId)
   at Microsoft.TeamFoundation.VersionControl.Client.Workspace.CheckIn(WorkspaceCheckInParameters checkinParameters)
   at TfsBuild.Versioning.Activities.CheckInFiles.Execute(CodeActivityContext context) in c:\Builds\4_2\BuildAndDeploy\BuildAndDeploy\Sources\tfsversioning\TfsBuild.Versioning.Activities\CheckInFiles.cs:line 55
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

But the problem is that i haven't any conflicts ore checked anything in. The build was triggered, because of an other project.但问题是我没有任何冲突或检查任何内容。由于另一个项目,触发了构建。 An solution is to run the build again and it passes.一个解决方案是再次运行构建并通过。 Any idea why this happens?知道为什么会这样吗?

It looks like the build process is making changes to source on the build server when it runs.看起来构建过程在运行时正在对构建服务器上的源进行更改。 Does your build workflow have any customisations that check out / modify files as part of your build process?您的构建工作流程是否有任何自定义检查/修改文件作为构建过程的一部分?

If the same files are changed on another build agent, or by a developer in their local workspace then you'll see conflicts.如果在另一个构建代理上更改了相同的文件,或者由他们本地工作区中的开发人员更改了相同的文件,那么您将看到冲突。 This is most likely to happen if you have 2 builds running concurrently (ie you have 2 build agents and 2 builds are started at the same time)如果您有 2 个构建同时运行(即您有 2 个构建代理并且 2 个构建同时启动),则最有可能发生这种情况

Some versioning extensions to TFS have this problem because they checkout / modify / checkin and versioning file as part of the build.一些 TFS 的版本控制扩展有这个问题,因为它们作为构建的一部分签出/修改/签入和版本控制文件。

In this scenario.在这种情况下。 the problem would go away when you run another build because the original build that had the pending changes would have finished.当您运行另一个构建时,问题就会消失,因为具有挂起更改的原始构建已经完成。

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

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