TFS Gated check-in — How to reject check-in on Partial Build Success?

拜拜、爱过 提交于 2019-12-23 12:25:03

问题


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?


回答1:


You can modify the build template to implement a different logic, if you don't like it: see How to change Partially Succeeded build to Succeeded in TFS 2010.



来源:https://stackoverflow.com/questions/21932353/tfs-gated-check-in-how-to-reject-check-in-on-partial-build-success

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