jenkinsci/parameter-separator-plugin

Parameter separator is throwing an exception

Opened this issue · 0 comments

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Amzon Linux

Reproduction steps

I installed the plugin on version 1.3 on 2 different Jenkins (2.387.3 and 2.319) on the first one it is working and on the second one I am getting an exception

Expected Results

I should have a parameter separator in both envs.

Actual Results

getting an exception
My Jenkins pipeline is failing with the following

java.lang.IllegalArgumentException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jenkinsci.plugins.structs.describable.Setter$1.set(Setter.java:33)
at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:429)
at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:331)
Caused: java.lang.IllegalArgumentException: Could not instantiate {name=RLC_MODE, defaultValue=null, description=Enable for MC to work in RLC mode.} for hudson.model.BooleanParameterDefinition
at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:334)
at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:208)
at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:466)
at org.jenkinsci.plugins.structs.describable.DescribableModel.coerceList(DescribableModel.java:585)
at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:458)
at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:409)
at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:329)
Caused: java.lang.IllegalArgumentException: Could not instantiate {parameterDefinitions=[{$class=ParameterSeparatorDefinition, name=SEP_NODES, sectionHeader=Working Nodes, separatorStyle=

Anything else?

The RLC_MODE is not an actual error. when I remove the parameter separator it is working. this is the beginning of the Jenkinsfile:

separatorStyle = '''
border: none;
'''

sectionHeaderStyle = '''
color: navy;
font-family: Roboto, sans-serif !important;
font-size: 20px;
padding: 5px;
text-align: left;
border-bottom: 1px solid navy;
'''
properties([
parameters([
[
$class: 'ParameterSeparatorDefinition',
name: 'SEP_NODES',
sectionHeader: 'Working Nodes',
separatorStyle: separatorStyle ,
sectionHeaderStyle: sectionHeaderStyle
],

Are you interested in contributing a fix?

No response