You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading to 2.5.1 from 2.4, one of our pipeline configurations had template_methods that declare the same functions as a library we were importing. I'm not sure if this was just wrong but it was not problematic in 2.4 but in 2.5, it throws an error that Overlapping template primitives for names.
I just wanted to note this as 2.5 stated no user-facing breaking changes but this was one for us.
Relevant log output
[JTE] There are multiple primitives with the name 'grud'
[JTE] 1. Step 'grud' from the 'vars' Library
[JTE] 2. No-Op Template Step 'grud'
[JTE] There are multiple primitives with the name 'source'
[JTE] 1. Step 'source' from the 'vars' Library
[JTE] 2. No-Op Template Step 'source'
[JTE] Overlapping template primitives for names: [grud, source] (show)
org.boozallen.plugins.jte.util.AggregateException: The following errors occurred:
1: Overlapping template primitives for names: [grud, source]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:242)
at org.boozallen.plugins.jte.init.primitives.TemplatePrimitiveInjector.invoke(TemplatePrimitiveInjector.groovy:149)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:46)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:233)
at org.boozallen.plugins.jte.init.primitives.TemplatePrimitiveInjector.orchestrate(TemplatePrimitiveInjector.groovy:98)
at org.boozallen.plugins.jte.init.primitives.TemplatePrimitiveInjector$orchestrate.call(Unknown Source)
at org.boozallen.plugins.jte.job.TemplateFlowDefinition.create(TemplateFlowDefinition.groovy:85)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:442)
Steps to Reproduce
Have a pipeline configuration where steps come from a library and have template_methods with the same name.
The text was updated successfully, but these errors were encountered:
Jenkins Version
2.346.1
JTE Version
2.5.1
Bug Description
When upgrading to 2.5.1 from 2.4, one of our pipeline configurations had
template_methods
that declare the same functions as a library we were importing. I'm not sure if this was just wrong but it was not problematic in 2.4 but in 2.5, it throws an error thatOverlapping template primitives for names
.I just wanted to note this as 2.5 stated no user-facing breaking changes but this was one for us.
Relevant log output
Steps to Reproduce
Have a pipeline configuration where steps come from a library and have
template_methods
with the same name.The text was updated successfully, but these errors were encountered: