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

Active Choices Plugin: Bug with radio boxes

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Radio buttons with a default option do not create a variable with this option unless they are interacted with.

      To reproduce:
      Using the attached config.xml:
      Click build with parameters
      Select an option for test_var_a, do not interact with radio buttons for test_var_b
      Click build

      Expected result:
      Build runs, with environmental variables test_var_a = <selected option> and test_var_b = opt_1

      Actual result:
      Build runs, with environmental variable test_var_a = <selected option> but no test_var_b environment value

        Attachments

          Activity

          Hide
          kinow Bruno P. Kinoshita added a comment -

          Hi William!

          Thanks for reporting this, and for the detailed description and (in special) for the config.xml

          I am working on another BioUno plug-in, but active-choices in the next on the list. Feel free to bump this issue if I take too long to update it.

          Cheers
          Bruno

          Show
          kinow Bruno P. Kinoshita added a comment - Hi William! Thanks for reporting this, and for the detailed description and (in special) for the config.xml I am working on another BioUno plug-in, but active-choices in the next on the list. Feel free to bump this issue if I take too long to update it. Cheers Bruno
          Hide
          wmacauley William Macauley added a comment -

          Hi Bruno,

          Thanks for the quick response. This isn't really urgent, as there's a simple enough work around for the time being: if you remove the default selection, the user is forced to interact with the dialogue, which circumvents the issue.

          Cheers,
          Will

          Show
          wmacauley William Macauley added a comment - Hi Bruno, Thanks for the quick response. This isn't really urgent, as there's a simple enough work around for the time being: if you remove the default selection, the user is forced to interact with the dialogue, which circumvents the issue. Cheers, Will
          Hide
          lyenliang lyen liang added a comment - - edited

          I created a pull request which solves this issue.

          Show
          lyenliang lyen liang added a comment - - edited I created a pull request which solves this issue.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Closed JENKINS-30545 as duplicate of this one. Here's the description entered in that issue.

          My Active Choice Reactive Parameter gets its value by executing the script below :
          ['A','B','C:selected']
          Choice type is set to a radio buttons and "C" is the default value selected

          The problem is that the default value is not passed to the build
          The value is passed only when selected manually.

          The same behaviour is not observed with the Active Choice Parameter.

          Show
          kinow Bruno P. Kinoshita added a comment - Closed JENKINS-30545 as duplicate of this one. Here's the description entered in that issue. My Active Choice Reactive Parameter gets its value by executing the script below : ['A','B','C:selected'] Choice type is set to a radio buttons and "C" is the default value selected The problem is that the default value is not passed to the build The value is passed only when selected manually. The same behaviour is not observed with the Active Choice Parameter.
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Thanks for the PR lyen liang. Will start triaging issues to start a new development cycle in the next days

          Show
          kinow Bruno P. Kinoshita added a comment - Thanks for the PR lyen liang . Will start triaging issues to start a new development cycle in the next days
          Hide
          kinow Bruno P. Kinoshita added a comment -

          Fixed in 1.3

          Show
          kinow Bruno P. Kinoshita added a comment - Fixed in 1.3

            People

            Assignee:
            kinow Bruno P. Kinoshita
            Reporter:
            wmacauley William Macauley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: