We started migrating our Jenkins jobs to pipeline jobs and our build status emails stopped working.
SMTP configuration is working OK I received test email and non pipeline jobs are still sending emails.
If I do something like this
Email not sent.
I start digging into mailer plugin and figured out how emails work.
I did some basic debugging out in pipeline code
and figured out that email transporter used in this instance is org.jvnet.mock_javamail.MockTransport
Again emails are working fine in non pipeline jobs. Configuration to use MockTransport is going from mock-javamail.jar based on classpath scanning. Is is possible that pipeline exposes this test jar to the classpath somehow?
Is there any easy workaround this configuration?