Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

jdtCompileLogPublisher (Ant script VisStudio builds)

I have a working ant script that builds a visual studio solution file and runs MSTests. Its communicating with RTC for compile and tests but isn't publishing the visual studio build log into RTC. I'm not getting any errors, here is the code section

<Publish>
<jdtCompileLogPublisher>

I have a checkenv section and its not saying anything is missing. We are using RTC 2.0.0.2 fix4. I'm also pretty new to scripting in ant.

Thanks!

Jeff

0 votes



4 answers

Permanent link
I have a working ant script that builds a visual studio solution file and runs MSTests. Its communicating with RTC for compile and tests but isn't publishing the visual studio build log into RTC. I'm not getting any errors, here is the code section

<Publish>
<jdtCompileLogPublisher>

I have a checkenv section and its not saying anything is missing. We are using RTC 2.0.0.2 fix4. I'm also pretty new to scripting in ant.

Thanks!

Jeff


Hi Jeff,

What does the name of your log file look like? The jdtCompileLogPublisher task only publishes files with specific file suffixes. This topic has more information about those. You might need to use the logPublisher if it doesn't have that pattern. And just in case you post more XML from your build file, for it to be viewable you'll need to check the 'Disable HTML in this post' before submitting.

Brent Ulbricht
RTC Build Lead

0 votes


Permanent link


Hi Jeff,

What does the name of your log file look like? The jdtCompileLogPublisher task only publishes files with specific file suffixes. This topic has more information about those. You might need to use the logPublisher if it doesn't have that pattern. And just in case you post more XML from your build file, for it to be viewable you'll need to check the 'Disable HTML in this post' before submitting.

Brent Ulbricht
RTC Build Lead


Thanks Brent! That did the trick. Now I need to figure out now to get the MSTests log attached. I did find some information on converting the MStest.trx output file to a compatible junit log.

0 votes


Permanent link
Since 2.0.0.2 there's an mstestLogPublisher Ant task that you can use directly.
See http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/r_mstestlogpublisher.html

Be careful of this known issue though, whereby it assumes a *.xml file extension if you point it at a directory:
110710: Unit test log publishers assume .xml file extension and only process first file
You need to point it directly at a .trx file. The issue is fixed in 3.0.

0 votes


Permanent link
Since 2.0.0.2 there's an mstestLogPublisher Ant task that you can use directly.
See http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.build.doc/topics/r_mstestlogpublisher.html

Be careful of this known issue though, whereby it assumes a *.xml file extension if you point it at a directory:
110710: Unit test log publishers assume .xml file extension and only process first file
You need to point it directly at a .trx file. The issue is fixed in 3.0.


I found a tread that told me there was a bug. The workaround was to rename the file from a trx to a xml. Then publish it, its working just fine.

jeff

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 10 '11, 6:20 p.m.

Question was seen: 8,947 times

Last updated: Jun 10 '11, 6:20 p.m.

Confirmation Cancel Confirm