0

I have my app throwing JSHint violations into the Error Output using "LintResultLocation": "Error" but the build still "succeeds" and doesn't give any indication that something is wrong unless you specifically go look at the Error Log. I would like to cause a build Error that will be caught by our TeamCity build server. Is there a way to do this??

Jaboc83
  • 302
  • 1
  • 2
  • 8

1 Answers1

2

Teamcity automatically fails a build if a process is exited with some error code. However if your process in not returning error code you can alternatively fail the build based on a search string in the logs. You can set a Build Failure Condition which will search for a specific text in the logs and fail the build if the text is found.

enter image description here

Mohammad Nadeem
  • 9,134
  • 14
  • 56
  • 82
  • This will work to solve most of my problem. It still won't inform the developer before they push the change unless they happen to look at the error log, but as long as the build server catches it then it will at least be addressed. Thanks! – Jaboc83 May 21 '14 at 16:40