We are using TFS server 2012 and have CI builds set up on a build server.
Currently, the build result is "Failed" if anything failed to compile, "Partially Succeeded" if there are any unit test failures, and "Succeeded" otherwise.
My problem is that I don't want the result to be "Succeeded" if there are any build warnings, whether they be compiler warnings, Code Analysis warnings , StyleCop warnings, or whatever.
Is there any way to modify the build configuration so that the presence of warnings causes the result to be "Partially Succeeded" instead of "Succeeeded"?