-
Bug
-
Resolution: Unresolved
-
Trivial
-
None
-
Jenkins 4.414.1
copyartifact-plugin 722.v0662a_9b_e22a_c
When I tried to build a parameterized job and passed 2 times the value PROJECT_PATH, first as String and later as a Number I received a Jenkins error and this was the log:
2023-09-07 08:17:05.785+0000 [id=1401687] WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://jenkins.xxxxxxx/build
java.lang.IllegalArgumentException: Specified type class hudson.plugins.copyartifact.SpecificBuildSelector is not assignable to the expected class hudson.model.StringParameterValue
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:759)
Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.model.StringParameterValue from {"name":"PROJECT_PATH","buildNumber":"111","stapler-class":"hudson.plugins.copyartifact.SpecificBuildSelector","$class":"hudson.plugins.copyartifact.SpecificBuildSelector"}
at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:769)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:549)
at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:544)
at hudson.model.StringParameterDefinition.createValue(StringParameterDefinition.java:151)
at hudson.model.ParametersDefinitionProperty._doBuild(ParametersDefinitionProperty.java:159)
at jenkins.model.ParameterizedJobMixIn.doBuild(ParameterizedJobMixIn.java:214)
at jenkins.model.ParameterizedJobMixIn$ParameterizedJob.doBuild(ParameterizedJobMixIn.java:402)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:397)
Caused: java.lang.reflect.InvocationTargetException