For pipeline you have two options:

https://jenkins.io/doc/pipeline/steps/workflow-basic-steps/#mail-mail

https://jenkins.io/doc/pipeline/steps/email-ext/

The first uses the bundled Mailer plugin, the second uses Email-ext, which
allows for more options.

On Mon, Jan 9, 2017 at 4:36 PM Raffaele Sgarro <[email protected]>
wrote:

> Hi Ohad! As I understand from your kind message, the job DSL is not
> available in a Jenkinsfile. The jobDsl trick is clearly a hack and I
> prefer keeping it simple, even if try-finally and if-else constructs
> don't really belong to a declarative way of describing a pipeline.
>
> May I ask if you think this (configuring the mailer publisher via 
> stage([$class:
> 'Mailer'])) is intended or just not implemented yet?
>
> --
> 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/58191228-334c-45e0-84eb-f602a2105792%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/58191228-334c-45e0-84eb-f602a2105792%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPiUgVeMFGbn-NYmS_%3DSzTa7mV8bZCRVoVDeextBMWLFV7ih%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to