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

Extensible Choice Parameter plugin overrides "Top Most Value" with blank value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.12
      Windows 7 x64
      Java 1.8.0_91
      Extensible Choice Parameter plugin 1.3.2

      After configuring a job that uses the Extensible Choice Parameter plugin, I noticed that Jenkins automatically decided to override the Default Choice value from <Top Most Value> to an empty String. It looks like the defaultChoice tag is being added between configuration changes. I have multiple variables that use this plugin in the same job, but it only seems to affect one (The first parameter).

      Old job config

      <name>MONGO_SERVER</name>
      <description>The Mongo server to connect to</description>
      <editable>false</editable>
      <choiceListProvider class="jp.ikedam.jenkins.plugins.extensible_choice_parameter.GlobalTextareaChoiceListProvider">
      <name>MONGO_SERVER</name>
      </choiceListProvider>
      

      New config

      <name>MONGO_SERVER</name>
      <description>The Mongo server to connect to</description>
      <editable>false</editable>
      <choiceListProvider class="jp.ikedam.jenkins.plugins.extensible_choice_parameter.GlobalTextareaChoiceListProvider">
      <name>MONGO_SERVER</name>
      <defaultChoice></defaultChoice>
      </choiceListProvider>
      

            ikedam ikedam
            cwcam Cam Spencer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: