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

Cannot use multiple parameters with parameter type equal to Radio Buttons

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Extended Choice Parameter Plug-In 0.28
      jenkins-1.533-1.1.noarch
      java-1.7.0-openjdk-1.7.0.25-2.3.10.4.el6_4.x86_64
      Linux synthia 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

      I prepared job with two parameters: ACTION and TYPE. Type of both parameters is equal to "Radio Buttons" (configuration.png).

      User, after click on "Build with Parameters", can choose only one parameter (when I click on the ENABLE button, then CURRENT radio will be deselect).

      The problem is that all the radio buttons have the same name.

        1. configuration.png
          17 kB
          Adam Gabryś
        2. build.png
          3 kB
          Adam Gabryś

          [JENKINS-19907] Cannot use multiple parameters with parameter type equal to Radio Buttons

          Brian Estes added a comment -

          Used a Single Select in addition to the Radio Button so that I could work around this bug.

          Brian Estes added a comment - Used a Single Select in addition to the Radio Button so that I could work around this bug.

          Samy Lerari added a comment -

          Got the exact same problem. The radio button limitation is not by rabio button group but is global to all radio button groups.

          Jenkins version : 1.545
          Extended choice parameter plugin : 0.28

          As Brian Estes told, just have to use only one radio button group in the whole job

          Samy Lerari added a comment - Got the exact same problem. The radio button limitation is not by rabio button group but is global to all radio button groups. Jenkins version : 1.545 Extended choice parameter plugin : 0.28 As Brian Estes told, just have to use only one radio button group in the whole job

          This is due to the fields all have the name="value" but can be fixed following the Structured Form Submission guidelines (https://wiki.jenkins-ci.org/display/Jenkins/structured+form+submission) where the the name can be appended with a string which is removed during submission.

          Please see pull request:

          http://github.com/jenkinsci/extended-choice-parameter-plugin/pull/6

          Luke Robertson added a comment - This is due to the fields all have the name="value" but can be fixed following the Structured Form Submission guidelines ( https://wiki.jenkins-ci.org/display/Jenkins/structured+form+submission ) where the the name can be appended with a string which is removed during submission. Please see pull request: http://github.com/jenkinsci/extended-choice-parameter-plugin/pull/6

          Fixed in 0.31

          Luke Robertson added a comment - Fixed in 0.31

          Code changed in jenkins
          User: Luke Robertson
          Path:
          src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/b35b4f0c45560e80f9af9b1ae680b5b27f7551c1
          Log:
          JENKINS-19907

          Ability to add multiple radio button properties following the
          Structured Form Submission guidelines
          (https://wiki.jenkins-ci.org/display/Jenkins/structured+form+submission)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Luke Robertson Path: src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly http://jenkins-ci.org/commit/extended-choice-parameter-plugin/b35b4f0c45560e80f9af9b1ae680b5b27f7551c1 Log: JENKINS-19907 Ability to add multiple radio button properties following the Structured Form Submission guidelines ( https://wiki.jenkins-ci.org/display/Jenkins/structured+form+submission )

          Code changed in jenkins
          User: Luke Robertson
          Path:
          src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/ee76c35fdbb88562781ebc798bce89be84bd723f
          Log:
          [FIXED JENKINS-19907]

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Luke Robertson Path: src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly http://jenkins-ci.org/commit/extended-choice-parameter-plugin/ee76c35fdbb88562781ebc798bce89be84bd723f Log: [FIXED JENKINS-19907]

          Code changed in jenkins
          User: vimil
          Path:
          src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly
          http://jenkins-ci.org/commit/extended-choice-parameter-plugin/1c177a3665d50314854b71e2ea205ca4e6d31380
          Log:
          Merge pull request #6 from lrobertson39/master

          JENKINS-19907 fixed

          Compare: https://github.com/jenkinsci/extended-choice-parameter-plugin/compare/ac18a8155c34...1c177a3665d5

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: vimil Path: src/main/resources/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition/radioContent.jelly http://jenkins-ci.org/commit/extended-choice-parameter-plugin/1c177a3665d50314854b71e2ea205ca4e6d31380 Log: Merge pull request #6 from lrobertson39/master JENKINS-19907 fixed Compare: https://github.com/jenkinsci/extended-choice-parameter-plugin/compare/ac18a8155c34...1c177a3665d5

            Unassigned Unassigned
            agabrys Adam Gabryś
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: