>
> What would be the equivalent of this:
>
> post {
>         always {
>             echo 'One way or another, I have finished'
>             deleteDir() /* clean up our workspace */
>         }
>         success {
>             echo 'I succeeeded!'
>         }
>         unstable {
>             echo 'I am unstable :/'
>         }
>         failure {
>             echo 'I failed :('
>         }
>         changed {
>             echo 'Things were different before...'
>         }
>     }
> }
>
> in a Groovy pipleline? 
>
> I'm looking at using "something" to notify by email if a build fails
>
>
Groovy code presented in this Cloudbees' article is about mail 
notifications (also, slack and hipchat) -- but you may want to extend it to 
suit your needs.

https://www.cloudbees.com/blog/sending-notifications-pipeline

/Ram

-- 
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/da5927cf-2fc5-4c46-9734-8db06b87be7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to