Unable to run Code Health Report
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
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
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:
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
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
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:
- use the regular javac task, but with a -log option, using a filename with a .xml suffix to get structured output, e.g.:
- 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.
- 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.
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.
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.
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
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
On 5/12/2010 7:08 AM, tbourque wrote:
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,
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
page 1of 1 pagesof 2 pages