jenkinsci / extended-choice-parameter-plugin

Jenkins extended-choice-parameter plugin
https://plugins.jenkins.io/extended-choice-parameter/
MIT License
74 stars 98 forks source link

effectiveValue always auto strip whitespace for each item #81

Closed mamh2021 closed 1 year ago

mamh2021 commented 1 year ago

Jenkins and plugins versions report

1. for selectContent.jelly <j:forEach var="value" items="${effectiveValue}">

ParameterDefinitionInfo.effectiveValue always auto strip whitespace in forEach tag, so it will not match value to description

value is 111,22222 ,3333,444444

description is aaa,bbb,ccc,ddd

2. in computeDefaultValueMap method defaultValues always trim

3. in computeDescriptionPropertyValueMap method , the map keys not were trim

so I suggest make the three to same strategy

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

extended-choice-parameter-plugin with the lastest source code at df7ecf9 * Update pom.xml

Reproduction steps

select "Basic Parameter Types" set value to 111,22222 ,3333,444444 set description to aaa,bbb,ccc,ddd image

Expected Results

image

Actual Results

image

image

Anything else?

No response

chonton commented 1 year ago

Pull requests are welcome