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
          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ś

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

              Created:
              Updated:
              Resolved: