How to conditionally fail a build in a pull requests with TFS/VSTS

When your TFS/VSTS CI build is also used for a pull request, you often want to enable more checks before you let this go into the master (or any target) branch, and fail the build if these raise warnings. It can be extra tests you want to run, code quality checks,  process checks, and  you Continue Reading →