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?
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?
3 answers
patrick.renaud wrote:
Check if this post from Nick helps...
http://jazz.net/forums/viewtopic.php?t=5911
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
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 :(
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 :(
In the 'better late than never' category, I've filed 97954: Allow publishing tasks to not impact overall build status for this.