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

"parameters" object contans numbers (int() conversion) instead of characters #20

Open
sergiik opened this issue Dec 12, 2019 · 0 comments

Comments

@sergiik
Copy link

sergiik commented Dec 12, 2019

java --version
openjdk 11.0.5 2019-10-15

jenkins ver:
2.190.3

matrix-groovy-execution-strategy
1.0.7

println parameters["option"] prints array of numbers. For instance if parameters["option"] contains "auto" it will be printed as [97, 117, 116, 111] which is int() conversion of characters. It looks there is unexpected int() conversion

richardlau added a commit to richardlau/build that referenced this issue Aug 25, 2022
The Matrix Groovy Execution Strategy plugin appears to have an issue
on Java 11+ where string parameters are appearing as byte arrays
instead of strings. Implement a workaround to detect this and convert
the byte array back into a string.

Refs: jenkinsci/matrix-groovy-execution-strategy-plugin#20
richardlau added a commit to richardlau/build that referenced this issue Aug 25, 2022
The Matrix Groovy Execution Strategy plugin appears to have an issue
on Java 11+ where string parameters are appearing as byte arrays
instead of strings. Use the new String() constructor instead of
toString() to ensure we get string repesentation of the parameter.

Refs: jenkinsci/matrix-groovy-execution-strategy-plugin#20
richardlau added a commit to nodejs/build that referenced this issue Aug 25, 2022
The Matrix Groovy Execution Strategy plugin appears to have an issue
on Java 11+ where string parameters are appearing as byte arrays
instead of strings. Use the new String() constructor instead of
toString() to ensure we get string repesentation of the parameter.

Refs: jenkinsci/matrix-groovy-execution-strategy-plugin#20
Refs: #2984 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant