• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • active-choices-plugin
    • None
    • Active Choices Plugin v1.2

      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

          [JENKINS-30545] Active Choices Plugin: Bug with radio boxes

          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

          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

          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

          lyen liang added a comment - - edited

          I created a pull request which solves this issue.

          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.

          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

          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

          Bruno P. Kinoshita added a comment - Fixed in 1.3

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

              Created:
              Updated:
              Resolved: