[JIRA] [email-ext-plugin] (JENKINS-28729) Exception raised during template rendering: getAffectedFiles() is not implemented

76 views
Skip to first unread message

santoshakuthota@gmail.com (JIRA)

unread,
Jun 3, 2015, 3:47:01 PM6/3/15
to jenkinsc...@googlegroups.com
Santosh Akuthota created an issue
 
Jenkins / Bug JENKINS-28729
Exception raised during template rendering: getAffectedFiles() is not implemented
Issue Type: Bug Bug
Assignee: Alex Earl
Components: email-ext-plugin, tfs-plugin
Created: 03/Jun/15 7:46 PM
Environment: Jenkins ver. 1.598, Windows Server, TFS 2013
Priority: Minor Minor
Reporter: Santosh Akuthota

The Email is having issues and throws exception when a build is triggered by SCM poll. We are using TFS as our version tool. Please find the below email content for reference.

Exception raised during template rendering: getAffectedFiles() is not implemented by this SCM java.lang.UnsupportedOperationException: getAffectedFiles() is not implemented by this SCM at hudson.scm.ChangeLogSet$Entry.getAffectedFiles(ChangeLogSet.java:242) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl$GetBeanMethodMetaProperty.getProperty(MetaClassImpl.java:3500) at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:61) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:227) at SimpleTemplateScript2$_run_closure1.doCall(SimpleTemplateScript2.groovy:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:428) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1379) at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1351) at org.codehaus.groovy.runtime.dgm$170.invoke(Unknown Source) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at SimpleTemplateScript2.run(SimpleTemplateScript2.groovy:36) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.writeTo(SimpleTemplateEngine.java:165) at groovy.text.SimpleTemplateEngine$SimpleTemplate$1.toString(SimpleTemplateEngine.java:177) at hudson.plugins.emailext.plugins.content.ScriptContent.renderTemplate(ScriptContent.java:138) at hudson.plugins.emailext.plugins.content.ScriptContent.evaluate(ScriptContent.java:75) at org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro.evaluate(DataBoundTokenMacro.java:189) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:182) at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:233) at hudson.plugins.emailext.plugins.ContentBuilder.transformText(ContentBuilder.java:71) at hudson.plugins.emailext.ExtendedEmailPublisher.addContent(ExtendedEmailPublisher.java:671) at hudson.plugins.emailext.ExtendedEmailPublisher.createMail(ExtendedEmailPublisher.java:550) at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:331) at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:322) at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:230) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:721) at hudson.model.Build$BuildExecution.cleanUp(Build.java:192) at hudson.model.Run.execute(Run.java:1764) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

slide.o.mix@gmail.com (JIRA)

unread,
Jun 3, 2015, 3:58:25 PM6/3/15
to jenkinsc...@googlegroups.com

slide.o.mix@gmail.com (JIRA)

unread,
Jun 3, 2015, 3:58:25 PM6/3/15
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-28729
 
Re: Exception raised during template rendering: getAffectedFiles() is not implemented

This is not a bug in the email-ext plugin, the template requires that the SCM implements that based on what template you are using. You could edit your template to remove the call to getAffectedFiles().

slide.o.mix@gmail.com (JIRA)

unread,
Jun 3, 2015, 3:58:26 PM6/3/15
to jenkinsc...@googlegroups.com

olivida@microsoft.com (JIRA)

unread,
Jan 27, 2016, 10:13:05 PM1/27/16
to jenkinsc...@googlegroups.com
Olivier Dagenais resolved as Duplicate
Change By: Olivier Dagenais
Status: Open Resolved
Assignee: redsolo Santosh Akuthota
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages