-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: workflow-basic-steps-plugin
-
Environment:Jenkins 2.32.2 on Linux
Pipeline 2.5
Pipeline Groovy 2.27
Pipeline Job 2.10
Pipeline Nodes and Processes 2.9
Pipeline Stage 2.2
Pipeline Stage 2.9
Sending mails from pipeline jobs via the Mailer class doesn't work. Using this snippet
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'me@mail'])
just doesn't do anything. No error reported in the job, no errors in any logs and no mails delivered to the mail server. Sending mail at the end of freestyle jobs works as expected which indicates that this is a pipeline bug.