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. For more options, visit https://groups.google.com/d/optout.
