It's all about the answers!

Ask a question

Unable to run Code Health Report


Thaddee Bourque (61264) | asked Apr 15 '10, 10:08 a.m.
Hi,

When attempting to run the Code Health report, the Team Area, Build Definition & Component parameters are blank (non to select from). I have no issues running a Build Health report where values are displayed in the Team Area and once I select a team, a choice is presented for the Build Definition parameter. Could someone tell me how I can get the team areas to show up when running a Code Health report.

Thanks in advanced,
Thaddee

14 answers



permanent link
Rafik Jaouani (5.0k16) | answered May 27 '10, 3:53 p.m.
JAZZ DEVELOPER
If your build finishes running today, the Code Health report won't show the data immediatly, you have to wait until after midnight. That is when the RTC Data Mart starts collecting the new data.

permanent link
Geoffrey Clemm (30.1k33035) | answered May 26 '10, 11:38 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please post the defect work item on the jazz.net web site.
Just navigate to the RTC project, and you'll see the appropriate place
to click on the right-hand side of the page:

http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome

As you correctly point out, posting the work item into your own
repository would be of no value, except perhaps as a reminder to
yourself that you should post it to the jazz.net (:-).

Cheers,
Geoff

On 5/26/2010 11:22 PM, prcpani wrote:
nedgarwrote:
For the report configuration problem, if you haven't already opened a
work item, I suggest you do. It sounds like a defect.


http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome

Hi -

Am I requested to post a new defect workitem to jazz RTC web ? (or) I
have to post a new defect workitem in my project area ?

How this defect workitem is going to help me fix the issue ? please
guide me.

Thanks and Regards - Perala

permanent link
Perala Chakrapani (2122) | answered May 26 '10, 11:17 p.m.
For the report configuration problem, if you haven't already opened a work item, I suggest you do. It sounds like a defect.

http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome


Hi -

Am I requested to post a new defect workitem to jazz RTC web ? (or) I have to post a new defect workitem in my project area ?

How this defect workitem is going to help me fix the issue ? please guide me.

Thanks and Regards - Perala

permanent link
Nick Edgar (6.5k711) | answered May 26 '10, 10:57 a.m.
JAZZ DEVELOPER
For the report configuration problem, if you haven't already opened a work item, I suggest you do. It sounds like a defect.

http://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWelcome

permanent link
Perala Chakrapani (2122) | answered May 26 '10, 12:09 a.m.
Thanks for guidance/steps.

I now got compilation tab. its working as per your steps.

I tried to open Code Health Report, still the same issue, Iam not able to view teamarea / build definition list to pick and run report. all list boxes are empty as before getting compilation tab.

permanent link
Nick Edgar (6.5k711) | answered May 25 '10, 3:34 p.m.
JAZZ DEVELOPER
To publish compilation results, you need to:
- download the standalone Java compiler from Eclipse. See 'JDT Core Batch Compiler' (the binary, not source version) at http://download.eclipse.org/eclipse/downloads/drops/R-3.5.2-201002111343/index.php
- add this to your Ant library path with a -lib argument in the build definition's Ant page
- tell Ant to use this instead of the regular javac by adding to the script:

<property name="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter" />

- use the regular javac task, but with a -log option, using a filename with a .xml suffix to get structured output, e.g.:

<property name="compileLog" value="${basedir}/compile.xml" />
...
<javac srcdir="${basedir}/src"
destdir="${destdir}"
source="1.5"
target="1.5"
debug="on"
nowarn="on"
failonerror="false">
...
<compilerarg line="-1.5 -log ${compileLog}" />
</javac>

- then use the jdtCompileLogPublisher Ant task, or the 'ECJ Publishing' post-build option in the build definition, to publish this file to the build result.

The 'compile-and-test' example included in the Build System Toolkit shows how to do this. It's under jazz/buildsystem/buildtoolkit/examples/compile-and-test.
The build.xml file provides more details in its comments.

permanent link
Perala Chakrapani (2122) | answered May 24 '10, 2:05 a.m.
Hi -

Thanks for the links. I checked build example file in toolkit. for a property build.compiler - it points to JDT compiler class which I dont have in the build machine.

Only RTC build engine is running in build machine and not eclipse based RTC client.

Can you help me out on how to point to JDT compiler ?

Currently Iam using JDK 1.6 compiler that is good for project sources to compile.

permanent link
Sean G Wilbur (87212421) | answered May 15 '10, 5:20 p.m.
JAZZ DEVELOPER

IF Compilation tab is not there then how to obtain compilation tab in build results.


You need to implement the build contributions, the documentation is pretty good here, I would start here:

http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/t_build_overview.html

This section is specifically for contributing your results back to Jazz:
http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/r_publishbuildresult.html

Also you can check the wiki for some example scripts to start with.
https://jazz.net/wiki/bin/view/Main/BuildExamples

-Sean

permanent link
gokul sk (72610) | answered May 14 '10, 5:15 a.m.
On 5/12/2010 7:08 AM, tbourque wrote:
Hi James,

Please see answers to your questions below.

Thanks,
Thaddee

jmoodywrote:
Do you have JUnit tests configured?
Yes

jmoodywrote:
Are they contibuted to a build result in the normal way?
Yes

jmoodywrote:
Does your build compile Java code?
Yes (code compilation results are embedded in the RTC build log)

jmoodywrote:
Is it configured in the typical way or do you have a custom build
setup?
Typical way


Okay, so just to verify, when you open a build result in the build
result editor, you see a "Compilation" and a "JUnit" tab in the editor,
which contain these results? If this is true, then the report should
work correctly. There may be something else going on. Could you open a
work item in the Reports component so we can help you track this down?

james
RTC Reports Team Lead


Hi James,

Thanks for your valuable information.

I have one more query about this discussion.

IF Compilation tab is not there then how to obtain compilation tab in build results.

I am waiting for you reply.


Thanks
Gokul

permanent link
James Moody (3.3k24) | answered May 13 '10, 9:30 a.m.
JAZZ DEVELOPER
On 5/12/2010 7:08 AM, tbourque wrote:
Hi James,

Please see answers to your questions below.

Thanks,
Thaddee

jmoodywrote:
Do you have JUnit tests configured?
Yes

jmoodywrote:
Are they contibuted to a build result in the normal way?
Yes

jmoodywrote:
Does your build compile Java code?
Yes (code compilation results are embedded in the RTC build log)

jmoodywrote:
Is it configured in the typical way or do you have a custom build
setup?
Typical way


Okay, so just to verify, when you open a build result in the build
result editor, you see a "Compilation" and a "JUnit" tab in the editor,
which contain these results? If this is true, then the report should
work correctly. There may be something else going on. Could you open a
work item in the Reports component so we can help you track this down?

james
RTC Reports Team Lead

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.