Description
Describe the bug
The value for a RestListParameterValue Parameter is missing in Remote Access API ("../api/") responses. The parameter 'name' is shown but no 'value' element is present.
To Reproduce
Steps to reproduce the behavior:
- Configure a project to use a RestListParameter parameter.
- Generate a run/Build the project.
- Check the Remote Access API response (
<jenkins_url>/<project>/<build#>/api/xml
,<jenkins_url>/<project>/<build#>/api/json
, etc.) - Note the absence of a value in the response.
Expected behavior
The value of the parameter to be exposed to API requests.
Screenshots
Excerpt from the /api/xml response for a run of an example project; note the absence of a value
:
Versions (please complete the following information):
- Jenkins: 2.361.4
- Plugin: 1.6.3
- Browser: Firefox, Chrome (any really)
Additional context
Given that the information is saved to the build.xml
and is shown properly on the /parameters page, this should be an oversight(?)
Guessing now...Is it possible the issue is the fact the @Exported
annotation is still on the value field rather than the getValue method? As part of #85, value
was shifted to private and the value.jelly file was adjusted to use the getValue method, but the annotation was not moved/changed.