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: 'myem...@gmail.com'

}

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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/779ecdf8-22e5-4d2c-a437-862e8f20b5ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to