-
Notifications
You must be signed in to change notification settings - Fork 99
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
effectiveValue always auto strip whitespace for each item #81
Comments
Pull requests are welcome |
mamh2021
pushed a commit
to mamh-java/extended-choice-parameter-plugin
that referenced
this issue
Aug 6, 2023
try to fix jenkinsci#81 for selectContent.jelly <j:forEach var="value" items="${effectiveValue}"> this will be trim by jelly tag forEach. for computeDefaultValue this will be trim by method computeDefaultValueMap but descriptionPropertyValue was not trim. Change-Id: Ic05be1679436d7c6c80c4d585a301acfbeaa5cc7
chonton
pushed a commit
that referenced
this issue
Aug 6, 2023
try to fix #81 for selectContent.jelly <j:forEach var="value" items="${effectiveValue}"> this will be trim by jelly tag forEach. for computeDefaultValue this will be trim by method computeDefaultValueMap but descriptionPropertyValue was not trim. Change-Id: Ic05be1679436d7c6c80c4d585a301acfbeaa5cc7 Co-authored-by: bright.ma <bright.ma@magesfc.com>
mamh2021
pushed a commit
to mamh-java/extended-choice-parameter-plugin
that referenced
this issue
Nov 5, 2023
try to fix jenkinsci#81 for selectContent.jelly <j:forEach var="value" items="${effectiveValue}"> this will be trim by jelly tag forEach. for computeDefaultValue this will be trim by method computeDefaultValueMap but descriptionPropertyValue was not trim. Change-Id: Ic05be1679436d7c6c80c4d585a301acfbeaa5cc7
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jenkins and plugins versions report
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
in computeDefaultValueMap method defaultValues always trim
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
Expected Results
Actual Results
Anything else?
No response
The text was updated successfully, but these errors were encountered: