Code Inspection information is not shown for some builds

Hi.

I am building a Maven Build with TeamCity. I want to include PMD in my Builds and get TeamCity to show it. But for some unknown reason, TeamCity shows the "Code Inspection" Tab for some builds and for others it won't. I activated Debug logging for TeamCIty, but I could not see any log messages related to that problem. The build logs from builds with and without Code Inspection Tab show no difference, except:

with Code Inspection:


[08:16:45]: ##teamcity[buildStatus status='SUCCESS' text='Errors: 0, warnings: 0, information: 481']
[08:16:45]: PMD report watcher
[08:16:45]: [PMD report watcher] 7 file(s) found
[08:16:45]: Build finished


without Code Inspection:

[16:03:43]: ##teamcity[buildStatus status='SUCCESS' text='Errors: 0, warnings: 0, information: 481']
[16:03:43]: PMD report watcher
[16:03:43]: [PMD report watcher] 7 file(s) found
[16:03:43]: Total: 481 (+0 -0) Errors: 0 (+0 -0)
[16:03:43]: Build finished

Does anybody have an idea what is happening here?

Here are some Screenshots, first without Code Inspection:
teamcity_no_code_inspection.JPG
... with Code Inspection:
teamcity_with_code_inspection.JPG
... an overview showing all builds:
teamcity_build_overview.JPG

6 comments
Comment actions Permalink

Hi Bertolt,

Thanks of informing of the issue.

How often do such builds (without Inspections tab shown) take place?

Could you please attach teamcity-agent.log with debug mabe enabled.

0
Comment actions Permalink

I would say it fails unregularly 3 out of ten times. I guess, it is somehow dependent on changes of the pom.xml, but I have not yet figured out on which changes.

I am attaching the log files and the PMD reports that were created.



Attachment(s):
reports.tgz
teamcity-logs.tgz
0
Comment actions Permalink

Thanks for attachments.

Among attached log files there are only server-side log files. Could you please attach teamcity-agent.log ( is at <buildAgent_path>/logs/teamcity-agent.log ) with debug logging enabled.

BTW, you don't need to pass all 7 xml files to xml-report-plugin, only one of them ( pmd.xml ) contains inspections results , others are unnecessary.

I am trying to reproduse issue using the attached reports with TeamCity Darjeeling EAP, but having no success. What is your TeamCity version?

0
Comment actions Permalink

Sorry, I thought both server and agent were logging into the same directory.

This time I am attaching the agent logs (including again the pmd.xml).



Attachment(s):
teamcity-logs.tgz
0
Comment actions Permalink

Forgot to add the version I am using: it is TeamCity        Professional Version 4.5.4 (build 9071).

0
Comment actions Permalink

Sorry for the delay. The question is still relevant? If yes please leave a comment or create a separate thread.

Kind regards,
Marina
0

Please sign in to leave a comment.