jenkinsci / rest-list-parameter-plugin

A simple Jenkins parameter plugin that offers a list of values based on a REST call response.
https://plugins.jenkins.io/rest-list-parameter
GNU General Public License v3.0
10 stars 9 forks source link

RESTList not returns its value to Active Choices Reactive Parameters when it referenced #204

Open cmarsha opened 8 months ago

cmarsha commented 8 months ago

Describe the bug Hi! The RESTList parameter returns its own description instead of the value when it used as a "referencedParameters" in an activeChoiceHtml parameter

To Reproduce Steps to reproduce the behavior:

  1. Create a job with the RESTList parameter type and the name "RESTList_ParameterName", which returns some list of values. And write something in the description field!
  2. Create a second parameter of the type "Active Choices Reactive Reference Parameter" with the following parameters: activeChoiceHtml(choiceType: 'ET_FORMATTED_HTML', name: 'Param2', omitValueField: false, randomName: 'choice-parameter-3402384435426128', referencedParameters: 'RESTList_ParameterName', script: groovyScript(fallbackScript: [sandbox: true, script: 'return ["ERROR"]'], script: [sandbox: true, script: 'return ["${RESTList_ParameterName}"]'])
  3. Save it.
  4. Click on "Build with parameters"
  5. In the Param2 field you will see the description from the RESTList_ParameterName param.

Expected behavior I expected to see the value but not the description of "RESTList_ParameterName" parameter.

Screenshots If applicable, add screenshots to help explain your problem.

Versions (please complete the following information):

Additional context Add any other context about the problem here.