Email-ext error sending email

Skoðað 90 sinnum
Fara í fyrstu ólesnu skilaboð

Pino Alu

ólesið,
17. feb. 2017, 09:12:4317.2.2017
til Jenkins Users
We are using Jenkins Core 1.625.3 - Email-ext 2.55 and Token-macro 1.12.1.  The job is configured to send email to recipient list upon success and failure.  Upon a successful job completion we receive the following error.  We installed both plugins using Jenkins Plugin manager.

ERROR: Step ‘Editable Email Notification’ aborted due to exception: 07:56:05 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; 07:56:05 at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:80) 07:56:05 at hudson.plugins.emailext.ExtendedEmailPublisher.setSubject(ExtendedEmailPublisher.java:706) 07:56:05 at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:595) 07:56:05 at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:355) 07:56:05 at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:345) 07:56:05 at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:253) 07:56:05 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 07:56:05 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) 07:56:05 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) 07:56:05 at hudson.model.Build$BuildExecution.cleanUp(Build.java:195) 07:56:05 at hudson.model.Run.execute(Run.java:1788) 07:56:05 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 07:56:05 at hudson.model.ResourceController.execute(ResourceController.java:98) 07:56:05 at hudson.model.Executor.run(Executor.java:408)

Job email-ext config.xml

<publishers>
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="emai...@2.55">
<recipientList>john@example.com</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.ListRecipientProvider/>
<hudson.plugins.emailext.plugins.recipients.RequesterRecipientProvider/>
</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>$DEFAULT_SUBJECT</defaultSubject>
<defaultContent>$DEFAULT_CONTENT</defaultContent>
<attachmentsPattern/>
<presendScript>$DEFAULT_PRESEND_SCRIPT</presendScript>
<postsendScript>$DEFAULT_POSTSEND_SCRIPT</postsendScript>
<attachBuildLog>false</attachBuildLog>
<compressBuildLog>false</compressBuildLog>
<replyTo>$DEFAULT_REPLYTO</replyTo>
<saveOutput>false</saveOutput>
<disabled>false</disabled>
</hudson.plugins.emailext.ExtendedEmailPublisher>
</publishers>

Slide

ólesið,
17. feb. 2017, 09:36:0317.2.2017
til Jenkins Users
You have the wrong version of token-macro. Upgrade to the latest.

--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7db42a80-9ba4-48df-89e0-f7330b478b83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Pino Alu

ólesið,
17. feb. 2017, 10:01:3717.2.2017
til Jenkins Users
If we upgrade to v 2.0 this would require Jenkins Core be updated from 1.625.3 to 1.642.2 or higher

Slide

ólesið,
17. feb. 2017, 10:14:0217.2.2017
til Jenkins Users

Then you will need to downgrade email-ext


--
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 jenkinsci-use...@googlegroups.com.
Svara öllum
Svara höfundi
Senda áfram
0 ný skilaboð