Hi,
If I understand correctly, Jenkins doesn't publish my XUnit results because
my build fails?
My goal is to have the build to be marked as failed, while still having
some of my post-build script run (in fact, all excepting one).
If I change the failonerror in my Ant task, will it continue to build,
while still marking the build as failed, because there was XUnit errors?
Regards,
Mikael.
Le mercredi 21 août 2013 18:54:46 UTC+2, JonathanRRogers a écrit :
>
>
>
> On Tuesday, August 20, 2013 2:56:06 PM UTC-4, Mikael Peigney wrote:
>>
>> Hi,
>>
>> I have a job for a PHP project which runs an ant script, which runs
>> PHPUnit.
>> My Ant task is:
>>
>>> <target name="phpunit" description="Run unit tests with PHPUnit">
>>> <exec executable="phpunit" failonerror="true">
>>> <arg value="-c" />
>>> <arg path="${basedir}/app/phpunit.xml" />
>>> </exec>
>>> </target>
>>
>>
>> It runs fine when they are no problems. However, when there is a fail,
>> the job is marked as failed (normal), but it says there is no failures in
>> test result.
>> I attached some screens:
>>
>
> It looks to me like Jenkins is behaving correctly. If you want Jenkins to
> interpret XUnit results, you have to configure that in the job.
>
>>
>> I know my post lacks details, but I don't really know what else I can
>> attach.
>>
>> Mikael.
>>
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.