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

Maven builds and JUnitLogPublisherTask

Currently, our maven builds are declared as Failed when the Test phase detects JUnit errors, even when maven completes with BUILD SUCCESSFUL.

This seems to be a side-effect of adding the JUnitLogPublisherTask and task for reporting the JUnit results. If I comment out the call to this task in my POM file, the build is markes as PASS by the JBE.

So the question: how can I control the build status myself, the way I can do it easily with e.g. Build Forge?

0 votes



3 answers

Permanent link
patrick.renaud wrote:
Currently, our maven builds are declared as Failed when the Test phase
detects JUnit errors, even when maven completes with BUILD
SUCCESSFUL.

This seems to be a side-effect of adding the JUnitLogPublisherTask and
task for reporting the JUnit results. If I comment out the call to
this task in my POM file, the build is markes as PASS by the JBE.

So the question: how can I control the build status myself, the way I
can do it easily with e.g. Build Forge?


Check if this post from Nick helps...
http://jazz.net/forums/viewtopic.php?t=5911

0 votes


Permanent link
It would but unfortunately it does not work the way it is described in that post. I replied to that post with the error message, clearly showing that STATUS is not a supported attribute of the JUnitLogPlublisherTask.

Sad....

I need a way to do this, or I am just not going to publish JUnit results. But this is not a solution either :(

0 votes


Permanent link
In the 'better late than never' category, I've filed 97954: Allow publishing tasks to not impact overall build status for this.

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: Jul 30 '09, 3:59 p.m.

Question was seen: 5,361 times

Last updated: Jul 30 '09, 3:59 p.m.

Confirmation Cancel Confirm