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

Request: option to insert elements to position 0 instead of appending them

      When using option "allow add edited value" with default "top most value" it would be nice to have a configuration to insert the edited value as first element, instead of adding it at the bottom of the list.
      Might be helpful to have the "newest value" as default

          [JENKINS-28473] Request: option to insert elements to position 0 instead of appending them

          Petr Vejchoda added a comment -

          +1 to this

          Petr Vejchoda added a comment - +1 to this

          +1.
          This is definitely something we also need.
          Every new value which has been added should be the default value for the next build.

          Alternatively, Instead of "Default Choice: <Top Most Value>" add a new choice to select the value appended to the end of the list.

          Andreas Katzig added a comment - +1. This is definitely something we also need. Every new value which has been added should be the default value for the next build. Alternatively, Instead of "Default Choice: <Top Most Value>" add a new choice to select the value appended to the end of the list.

          extensible-choice-parameter 1.3.3-SNAPSHOT (private-04/21/2016 11:35-akatzig)
          With "Add To Top" Feature

          Andreas Katzig added a comment - extensible-choice-parameter 1.3.3-SNAPSHOT (private-04/21/2016 11:35-akatzig) With "Add To Top" Feature

          Andreas Katzig added a comment - - edited

          I implemented this feature and created a Pull Request: https://github.com/jenkinsci/extensible-choice-parameter-plugin/pull/21

          Please be aware that this is missing Unit Tests for now due to https://issues.jenkins-ci.org/browse/JENKINS-34371.

          If somebody wants to test feel free to get the source from here: https://github.com/derFunk/extensible-choice-parameter-plugin

          Or the hpi from here: extensible-choice-parameter-hpi-1.3.3-SNAPSHOT-AddToTop.zip

          Andreas Katzig added a comment - - edited I implemented this feature and created a Pull Request: https://github.com/jenkinsci/extensible-choice-parameter-plugin/pull/21 Please be aware that this is missing Unit Tests for now due to https://issues.jenkins-ci.org/browse/JENKINS-34371 . If somebody wants to test feel free to get the source from here: https://github.com/derFunk/extensible-choice-parameter-plugin Or the hpi from here: extensible-choice-parameter-hpi-1.3.3-SNAPSHOT-AddToTop.zip

          ikedam added a comment -

          This plugin is now out for adoption.

          ikedam added a comment - This plugin is now out for adoption.

            Unassigned Unassigned
            zioschild Sven Appenrodt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: