Hi,

I’m trying to find a way how I can react on test failures. e.g. I run maven 
with the flag to ignore test failures so the job does not stop. But in case a 
test failure was discovered, I would like to send a mail or  chat message - how 
can I do that?

   sh 'mvn clean install -B -Dmaven.test.failure.ignore'
   step([$class: 'JUnitResultArchiver', testResults: 
'**/target/surefire-reports/*.xml’])

   if(testFailure) {
       // send notification
   }

regards Domi

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/A81A74D0-1EC9-41DA-A258-328768D6E7A7%40fortysix.ch.
For more options, visit https://groups.google.com/d/optout.

Reply via email to