-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.405, Email Extension Plugin Version 2.97
The following error occurs at post-processing my freestyle build. Please advice.
Email was triggered for: Always
Sending email for trigger: Always
groovy.lang.MissingMethodException: No signature of method: jakarta.mail.internet.MimeMessage.getRecipients() is applicable for argument types: (javax.mail.Message$RecipientType) values: [To]
Possible solutions: getRecipients(jakarta.mail.Message$RecipientType), getRecipients(jakarta.mail.Message$RecipientType), setRecipients(jakarta.mail.Message$RecipientType, [Ljakarta.mail.Address, setRecipients(jakarta.mail.Message$RecipientType, [Ljakarta.mail.Address
, setRecipients(jakarta.mail.Message$RecipientType, java.lang.String), getAllRecipients()
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:48)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at Script1.run(Script1.groovy:1)
at hudson.plugins.emailext.ExtendedEmailPublisher.executeScript(ExtendedEmailPublisher.java:728)
at hudson.plugins.emailext.ExtendedEmailPublisher.executePresendScript(ExtendedEmailPublisher.java:677)
at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:527)
at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:484)
at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:385)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:818)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:767)
at hudson.model.Build$BuildExecution.cleanUp(Build.java:189)
at hudson.model.Run.execute(Run.java:1947)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
You're much more likely to receive help from others if you provide the details requested in "How to report an issue". Without the exact list of plugins that are installed, the steps you take to see the problem, and any configuration details needed in order to duplicate the problem, you're hoping that others will duplicate the problem with their best guesses of the steps to take.
I tried to duplicate the problem by installing Jenkins 2.405 with the email-ext plugin 2.97 and the following additional items that were included:
I created a freestyle project, added an editable email notification, and ran the job. It reported on the console that no email was sent.