You can check the currentBuild status just before sending the email:

currentBuild.result

If empty it mean nothing have set it to warning or error yet. you can set 
it to success
if(!currentBuild.result)
{
  currentBuild.result = 'SUCCESS'
}

or you could set it directly into the email without touching the 
currentBuild.result variable or use another variables into a custom 
template.

-- 
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/dd403b4e-dd28-484b-9c7e-3f8342e6faa6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to