You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Odelya Holiday <od...@alicanto.com> on 2012/08/17 01:12:27 UTC
Sending an email in case of compilation or junit failed
Hi
I would like to send an email in case of failed compilation or junit.
I saw in the documentation an ability to check if a jar exists but how do u suggest to retrieve the error in creating the jar or war and send it?
As well is there an out of the box way to send email with the junit result when they fail?
Odelya
Re: Sending an email in case of compilation or junit failed
Posted by Odelya Holiday <od...@alicanto.com>.
Thanks I m using Jenkins and hopefully will find a plugin for junit but how can I extract the compilation error from buildr output? I prefer to send the exact line and not the full trace
Odelya
On Aug 17, 2012, at 2:33 AM, Alex Boisvert <al...@gmail.com> wrote:
> These kinds of things are usually handled by your continuous-build system
> (e.g. Hudson/Jenkins, Luntbuild/Quickbuild, ...)
>
> Buildr returns a non-zero error code when the build fails (incl. junit
> failure) which is caught by these tools and many of them have plugins to
> look into generated JUnit reports so you can see which tests failed and
> easily jump to a stack trace, and so on.
>
> alex
>
>
> On Thu, Aug 16, 2012 at 4:12 PM, Odelya Holiday <od...@alicanto.com> wrote:
>
>> Hi
>>
>> I would like to send an email in case of failed compilation or junit.
>>
>> I saw in the documentation an ability to check if a jar exists but how do
>> u suggest to retrieve the error in creating the jar or war and send it?
>>
>> As well is there an out of the box way to send email with the junit result
>> when they fail?
>>
>>
>> Odelya
Re: Sending an email in case of compilation or junit failed
Posted by Alex Boisvert <al...@gmail.com>.
These kinds of things are usually handled by your continuous-build system
(e.g. Hudson/Jenkins, Luntbuild/Quickbuild, ...)
Buildr returns a non-zero error code when the build fails (incl. junit
failure) which is caught by these tools and many of them have plugins to
look into generated JUnit reports so you can see which tests failed and
easily jump to a stack trace, and so on.
alex
On Thu, Aug 16, 2012 at 4:12 PM, Odelya Holiday <od...@alicanto.com> wrote:
> Hi
>
> I would like to send an email in case of failed compilation or junit.
>
> I saw in the documentation an ability to check if a jar exists but how do
> u suggest to retrieve the error in creating the jar or war and send it?
>
> As well is there an out of the box way to send email with the junit result
> when they fail?
>
>
> Odelya