Search code examples
continuous-integrationteamcitystatic-analysiscppcheck

Any way to fail build in TeamCity by result of cppcheck analysis


I use cppcheck for static code analysis in my project and TeamCity for continuous integration. It would be nice if build server didn't build the project when cppcheck finds some errors or warnings. Is there any way to make build fail by result of cppcheck analysis?


Solution

  • I'm a cppcheck dev. The cppcheck command line flag --error-exitcode might help.