Inspection errors increase but build is still marked as successful

We are using TeamCity 7.1.3 Enterprise and have a build configured to import a checkstyle report with the following failure conditions


Fail build if number of inspection errors is more than 0 compared to the last successful build

Fail build if number of inspection warnings is more than 0 compared to the last successful build


The following build log is from the last build that had no inspection errors or warnings, build #19074
[14:08:03]/home/ciboodle/teamcity/agent/work/e019b19ce6b88439/logs/reports/audit-code.xml  report processed: 0 errors, 0 warnings, 0 info messages

[14:08:04]Checkstyle report watcher

[14:08:04][Checkstyle report watcher] 1 report found for paths:

[14:08:04][Checkstyle report watcher] logs/reports/audit-code.xml

[14:08:04][Checkstyle report watcher] Successfully parsed

[14:08:04][Successfully parsed] 1 report

[14:08:04][Successfully parsed] logs/reports/audit-code.xml

[14:08:04]Publishing internal artifacts

[14:08:04][Publishing internal artifacts] Sending build.finish.properties.gz file

[14:08:04]Publishing artifacts

[14:08:04][Publishing artifacts] Collecting files to publish: [logs/reports/audit-code.*]

[14:08:04][Publishing artifacts] Sending logs/reports/audit-code.*

[14:08:04]Cannot calculate build metric 'number of inspection errors' - no value

[14:08:04]Cannot calculate build metric 'number of inspection warnings' - no value

[14:08:04]Build finished


The next build finds new errors but is marked as a successful build.
[14:14:00]/home/ciboodle/teamcity/agent/work/e019b19ce6b88439/logs/reports/audit-code.xml  report processed: 2 errors, 0 warnings, 0 info messages

[14:14:00]Checkstyle report watcher

[14:14:00][Checkstyle report watcher] 1 report found for paths:

[14:14:00][Checkstyle report watcher] logs/reports/audit-code.xml

[14:14:00][Checkstyle report watcher] Successfully parsed

[14:14:00][Successfully parsed] 1 report

[14:14:00][Successfully parsed] logs/reports/audit-code.xml

[14:14:00]Publishing internal artifacts

[14:14:00][Publishing internal artifacts] Sending build.finish.properties.gz file

[14:14:00]Publishing artifacts

[14:14:00][Publishing artifacts] Collecting files to publish: [logs/reports/audit-code.*]

[14:14:00][Publishing artifacts] Sending logs/reports/audit-code.*

[14:14:00]Total: 2 (+0 -0) Errors: 2 (+0 -0)

[14:14:00]Cannot calculate build metric 'very important data' for anchor build #19074

[14:14:00]Cannot calculate build metric 'very important data' for anchor build #19074

[14:14:00]Build finished


Any idea why TeamCity has failed to calculate the number of errors and warnings in build #19074, and fail to detect the increase in the next build?

Rod

Please sign in to leave a comment.