Extended choice plugin does not work with remote builds

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • None
    • Environment:
      Hudson 1.395, Jenkins 1.383 with Extended choice Plugin 0.4

      The extended choice plugin will fail when used with remote builds. The parameter will not be recognised as being passed.
      In the plugin the following function is incorrect:

      {code()}

      public ParameterValue createValue(StaplerRequest request) {

      String value[] = request.getParameterValues(getName());

      if (value == null)

      { return getDefaultParameterValue(); }

      return null;
      }

      
      

      Note here that if the parameter is not set, it will set a default value. Otherwise it will always return NULL when it should return the current value, as something like a new ExtendedChoiceParameterValue.

            Assignee:
            vimil
            Reporter:
            Danny Staple
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: