Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter separator is throwing an exception #69

Open
liorlew opened this issue Mar 20, 2024 · 0 comments
Open

Parameter separator is throwing an exception #69

liorlew opened this issue Mar 20, 2024 · 0 comments
Labels

Comments

@liorlew
Copy link

liorlew commented Mar 20, 2024

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

@liorlew liorlew added the bug label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant