TFS Gated check

I have a post-build script (powershell) which throws an exception, as expected. The post-build script is defined in the build definition in the 'Post-build script path' section. The exception is logged in the 'Other Errors and Warnings' section of the build.

With gated check-in turned on changes are still committed even though the build is classed as 'partial' (because the post build script failed).

It seems that commits are only rejected if MSBuild fails or the unit tests fail.

How can I reject any commits on a partial build result?

建立输出


如果您不喜欢,可以修改构建模板以实现不同的逻辑:请参阅如何在TFS 2010中将部分成功构建更改为成功。

链接地址: http://www.djcxy.com/p/45020.html

上一篇: 以编程方式触发?

下一篇: TFS门控检查