Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61068

Active Choices radio parameter has incorrect default value on parambuild URL

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

            kinow Bruno P. Kinoshita
            agabrys Adam Gabryś
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: