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
          build-with-parameters.png
          32 kB
        2. image-2020-03-09-15-50-25-634.png
          image-2020-03-09-15-50-25-634.png
          88 kB
        3. image-2020-03-10-09-32-13-452.png
          image-2020-03-10-09-32-13-452.png
          13 kB
        4. parambuild.png
          parambuild.png
          11 kB
        5. parameter-configuration.png
          parameter-configuration.png
          9 kB
        6. reference-parameter.gif
          reference-parameter.gif
          107 kB
        7. uno-choice.hpi
          248 kB
        8. view-build-with-parameters.png
          view-build-with-parameters.png
          43 kB
        9. view-parambuild.png
          view-parambuild.png
          20 kB

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

              Created:
              Updated:
              Resolved:
              Archived: