Active Choices radio parameter has incorrect default value on parambuild URL

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Active Choice radio parameter on parambuild page is always visible as text box (which is fine). Unfortunately, the default value is set incorrectly. The plugin always fills the text box with the first value from the script and does not remove :selected suffix. It means that for the following script:

      ['1', '2', '3:selected', '4', '5']
      

      it returns 1, and for:

      ['1:selected', '2', '3', '4', '5']
      

      it returns 1:selected.

      This behavior makes radio button unusable when builds are triggered by Jenkins Pipeline build step or parambuild/buildWithParameters URLs.

        1. build-with-parameters.png
          32 kB
          Adam Gabryƛ
        2. image-2020-03-09-15-50-25-634.png
          88 kB
          Ioannis Moutsatsos
        3. image-2020-03-10-09-32-13-452.png
          13 kB
          Ioannis Moutsatsos
        4. parambuild.png
          11 kB
          Adam Gabryƛ
        5. parameter-configuration.png
          9 kB
          Adam Gabryƛ
        6. reference-parameter.gif
          107 kB
          Adam Gabryƛ
        7. uno-choice.hpi
          248 kB
          Bruno P. Kinoshita
        8. view-build-with-parameters.png
          43 kB
          Adam Gabryƛ
        9. view-parambuild.png
          20 kB
          Adam Gabryƛ

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Adam Gabryƛ
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: