How to force Code Review before Check-In in TFS 2012 RC?

心已入冬 提交于 2019-11-30 11:38:27

1) In team explorer, go to the "Settings" section. Choose "Source Control". When the window pops up, select the "Check-in Policy" tab. Click "add" and select the options you need.

2) Create a new build. On the "Trigger" tab, change to "Continuous Integration". This will force a build with every check in.

3) Gated check in requires a successful build to check in. Continuous Integration (CI) builds on check in (both options are found on the trigger tab in the build settings, and you can actually have both on different builds) A gated check in will basically store your check in as a changeset, run a build on it, and deny the check in if the build fails. CI checks in your code and runs a build, which may or may not fail.

Hope that helps!

There are a couple of Code Review checkin policies that you can install in Visual Studio and configure for you Team Project. These will enforce that a Code Review work item is linked to the changes before you can check them in:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!