Active Choices Reactive Parameter has no value although there is a selected choice

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major
    • Component/s: active-choices-plugin
    • Environment:
      Jenkins.war version 1.617 with updated to the latest version plugins;
      Active Choices Plug-in version 1.1;
      Validating String Parameter Plugin version 2.3;
      Java version 1.8.0_35.

      Created an Active Choices Reactive Parameter with radio-buttons output. The Groovy code always marks the first radio-button as selected by adding ":selected" in the result.

      The problem is that If the user does not change the (automatic) selection the AC Reactive Parameter has no value. If the user changes the (automatic) selection the parameter provides the user selected value. In case the AC Reactive Parameter generates a single choice the user will not be able to enforce a change, therefore the parameter will never have a value.

      Here is an excerpt from the code (see the attached file for the full project):

      if ( validStr != null ) {
        ...
        result[0] += ":selected"; //Select the first choice by default
      }
      
      return result;
      

            Assignee:
            Bruno P. Kinoshita
            Reporter:
            Monique Maker
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: