Hi all, I am trying to do some slack integration whereby in a declarative 
post failure section we want to send to slack the exception message that 
triggered the failure.

Something like:

pipeline {
   stages {
     ...
   }
   post {
      failure {
          slackSend(message: "Failed due to ${cause.toString()}")
      }
   }
}

What I am noticing is that it seems impossible to get the active 
exception/failure in a post section. Is there any trick that I am missing?

-Josh

-- 
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/a1dc28fd-c293-40dd-8ba1-d62b2add0b44%40googlegroups.com.

Reply via email to