Email-ext plugin conflicting with token-macro plugin

616 views
Skip to first unread message

Pino Alu

unread,
Feb 16, 2017, 10:44:08 AM2/16/17
to Jenkins Developers

I am trying to locate which version of Email-ext goes with token-macro plugin?  Currently we have Email-Ext v2.55 installed and token-macro v1.12.1 installed and Email-ext is not sending email but the Jenkins mail plugin is configured and works.  We receive this error and I feel it is an issue with token-macro version not playing nice with Email-ext.  Any help would be great.

 

Error:

 

19:00:14 Sending email for trigger: Success
19:00:14 ERROR: Step ‘Editable Email Notification’ aborted due to exception: 
19:00:14 java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;
19:00:14       at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80)
19:00:14       at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706)
19:00:14       at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595)
19:00:14       at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355)
19:00:14       at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345)
19:00:14       at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253)
19:00:14       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
19:00:14       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
19:00:14       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
19:00:14       at hudson.model.Build$BuildExecution.cleanUp(Build.java:195)
19:00:14       at hudson.model.Run.execute(Run.java:1788)
19:00:14       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
19:00:14       at hudson.model.ResourceController.execute(ResourceController.java:98)
19:00:14       at hudson.model.Executor.run(Executor.java:408)
 

Here is our config for email-ext.

<publishers>
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="emai...@2.55">
<recipientList>$DEFAULT_RECIPIENTS</recipientList>
<configuredTriggers>
<hudson.plugins.emailext.plugins.trigger.FailureTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern/>
<attachBuildLog>false</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.FailureTrigger>
<hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
<email>
<subject>$PROJECT_DEFAULT_SUBJECT</subject>
<body>$PROJECT_DEFAULT_CONTENT</body>
<recipientProviders>
<hudson.plugins.emailext.plugins.recipients.DevelopersRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.ListRecipientProvider/>
</recipientProviders>
<attachmentsPattern/>
<attachBuildLog>false</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo>$PROJECT_DEFAULT_REPLYTO</replyTo>
<contentType>project</contentType>
</email>
</hudson.plugins.emailext.plugins.trigger.SuccessTrigger>
</configuredTriggers>
<contentType>text/plain</contentType>
<defaultSubject>$PROJECT_DEFAULT_SUBJECT</defaultSubject>
<defaultContent>$PROJECT_DEFAULT_CONTENT</defaultContent>
<attachmentsPattern/>
<presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
<postsendScript/>
<attachBuildLog>false</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo>$DEFAULT_REPLYTO</replyTo>
<saveOutput>false</saveOutput>
<disabled>false</disabled>
</hudson.plugins.emailext.ExtendedEmailPublisher>
</publishers>

 

Thanks,

Pino Alu

unread,
Feb 16, 2017, 11:00:58 AM2/16/17
to Jenkins Developers
Using Jenkins core v 1.625.3

Slide

unread,
Feb 16, 2017, 11:23:03 AM2/16/17
to Jenkins Developers

Did you install via the plugin manager? If so, then the correct version of token macro should have been installed. If not, then you need to check the pom file for email-ext and determine from there what version is needed for each dependency.


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/e483b174-f35a-472d-ba54-15cde5632963%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pino Alu

unread,
Feb 16, 2017, 2:56:35 PM2/16/17
to Jenkins Developers
Yes, I installed from plugin manager.  Where is the email-ext pom.xml located as I would need another team member to locate it and send to me?

Pino Alu

unread,
Feb 16, 2017, 2:57:46 PM2/16/17
to Jenkins Developers
Any idea on how to resolve this error when email is triggered?

ERROR: Step ‘Editable Email Notification’ aborted due to exception:
19:00:14 java.lang.NoSuchMethodError: org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(Lhudson/model/Run;Lhudson/FilePath;Lhudson/model/TaskListener;Ljava/lang/String;ZLjava/util/List;)Ljava/lang/String;

On Thursday, February 16, 2017 at 9:44:08 AM UTC-6, Pino Alu wrote:

Daniel Beck

unread,
Feb 16, 2017, 3:04:10 PM2/16/17
to jenkin...@googlegroups.com

> On 16.02.2017, at 20:56, Pino Alu <ptra...@gmail.com> wrote:
>
> Using Jenkins core v 1.625.3

Jenkins 2.16 and up tell you when your plugin configuration is invalid and refuse to load plugins with unsatisfied dependencies. I recommend you upgrade to a recent release.

Also, please ask further questions on the jenkinsci-users mailing list. This is a user question.

Reply all
Reply to author
Forward
0 new messages