TFS2015:门控签入构建锁定文件

TFS2015:门控签入构建锁定文件

问题描述:

我正在尝试在 TFS2015.3 服务器上设置门控签入构建 (vNext).在我签入修改后,构建被触发.构建运行顺利,但修改后的文件仍被 Project Collection Build Service (TEAM FOUNDATION) 锁定.

I'm trying to setup a gated check-in build (vNext) on a TFS2015.3 server. After I check-in a modification the build is triggered. The build runs smooth but the modified files are remaining locked by Project Collection Build Service (TEAM FOUNDATION).

从构建日志中,我可以看到检查门控更改"步骤已正确执行.

From the build logs I can see that the "Check in gated changes" step is performed correctly.

如果团队项目源代码管理有多个签出选项禁用,我将无法修改锁定的文件,除非我解锁它们或我们再次排队构建.

If the team project source control has the multiple check-out option disable I'm not able to modify the locked files unless I unlock them or we queue the build again.

知道如何确定门控签入构建以在最后解锁文件吗?

Any idea how to determine the gated check-in build to unlock the files at the end?

更新

经过更多测试后,我发现门控签入构建正在释放新创建的集合中的文件;从 TFS2012 升级的集合上发生锁定问题.

After more tests I've found that the gated check-in build is releasing the files on a newly created collection; the locking issue is happening on a collection upgraded from TFS2012.

更新 2

再次手动运行(在门控签入后)构建会导致文件被解锁:

Manually running again (after a gated check-in) the build cause the files to be unlocked:

撤消工作区下的任何挂起的更改.

Undo any pending changes under workspace.

tf undo 撤消

D:\B\2\3\s\ConsoleApplication1\Program.cs

D:\B\2\3\s\ConsoleApplication1\Program.cs

更新 0929

@danielstefanescu - 看起来昨天已经修复了.应该在下次更新 (2.107.1)

@danielstefanescu - looks like it was fixed yesterday. Should be in next update (2.107.1)

bryanmacfarlane 评论

相关问题:tf undo at end搁置/门控构建 #588

这种现象也与其他人一起发生.但是,在我的环境中进行测试,与 TFS 2015 创建的集合配合得很好(没有从 TFS 2012 升级的集合).


This phenomenon also occurs with some others. However, test in my environment, works pretty well with the collection created by TFS 2015 (don't have the collection upgraded from TFS 2012).

根据上面的链接,Visual Studio 似乎关闭了,稍后返回文件不再显示已签出.但是,在签入更多更改后,下一次门控签入成功,但现在文件仍然显示为项目集合构建服务(TEAM FOUNDATION)"再次签出.你也可以试试你的身边.

According to the link above, seems close Visual Studio and come back a bit later the files no longer show checked out. However, after checking in more changes and the next gated check-in succeeded but now the files still show checked out again by "Project Collection Build Service (TEAM FOUNDATION)". You can also give a try with your side.

这很可能是一个BUG.我在 Microsoft 连接站点中有关键的一个.如果您发现了一些更有用的故障排除,您可以关注它的操作并分享信息.

This is very likely a BUG. And I have key one in Microsoft connect site. You can follow the action of it and also share the information if you have found some more useful trouble shootings.

门控签入构建即使在构建之后仍然锁定文件完成https://connect.microsoft.com/VisualStudio/feedback/details/3100862