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

Active Choices Plugin: Bug with radio boxes

    XMLWordPrintable

Details

    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

          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

          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

          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

          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
          lyenliang lyen liang added a comment - - edited

          I created a pull request which solves this issue.

          lyenliang lyen liang added a comment - - edited I created a pull request which solves this issue.

          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.

          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.

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

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

          Fixed in 1.3

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: