Hi,

you should be ablre to achieve this with the help of the Build Failure 
Analyzer plugin or the warnings-ng plugin (possibly with a custom groovy 
parser )

Björn


Am Montag, 4. Februar 2019 11:39:18 UTC+1 schrieb Faad Sayaou:
>
> I am trying to have the reason as it is printed on the console of my 
> Jenkins instance why a build failed through email. I did the following
>
> try {
> .....
>
> } catch (err) {
> cause=err
> emailext body:"Error: $cause ",
> to: '[email protected] <javascript:>'
>
> }
>
> The result on the console is something like "dotnetge command not found" 
> and i will like to have this same type of error through email. This is what 
> i get through email
>
> Error: hudson.AbortException: script returned exit code 127
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/07ccd19b-ee12-476a-a19b-1d13fce40eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to