• Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • other
    • None
    • Platform: All, OS: All

      Currently, Hudson project can be parameterized with string or file.

      It would be great to have pre-defined list paremeter. A pick list for user to
      select to avoid entering incorrect parameter.

      Moreover, it is even better the list parameter can be changed according to the
      user permssion.

      e.g. A list paramter of "Environment" the valid values
      are "SystemTest", "UserAcceptance" and "Production"

      For those users, they only have permission to build the project but NOT config.
      They should able to select "SystemTest" and "UserAcceptance"

      For those users, they have permission to config the project should able to
      select all possible values.

      The use case is developer can build for all environemnts excepting production.
      The production administrator can do production build. The
      parameter "Environment" can drive the build to include JUnit testcases for non-
      production environments.

          [JENKINS-2952] List parameter for a project

          keanuho added a comment -

          should be enhancement or new feature

          By the way, how can a scheduled build can select parameter value other than the
          default value (such as "production") ? As a production adminstator, you would
          not like to fire the build at 1:am in the morning but everything already
          automated by Hudson.

          keanuho added a comment - should be enhancement or new feature By the way, how can a scheduled build can select parameter value other than the default value (such as "production") ? As a production adminstator, you would not like to fire the build at 1:am in the morning but everything already automated by Hudson.

          huybrechts added a comment -

          A parameter type for choosing from a predefined list of values is useful, and
          is already covered by another issue IIRC.

          However your full use case seems a little too specific to support in the Hudson
          core. Fortunately parameter types are pluggable, and you can write a plugin to
          define a parameter just the way you like it...

          huybrechts added a comment - A parameter type for choosing from a predefined list of values is useful, and is already covered by another issue IIRC. However your full use case seems a little too specific to support in the Hudson core. Fortunately parameter types are pluggable, and you can write a plugin to define a parameter just the way you like it...

          Jesse Glick added a comment -

          (summary adjustment)

          Jesse Glick added a comment - (summary adjustment)

          mdonohue added a comment -

          Duplicate

              • This issue has been marked as a duplicate of 2558 ***

          mdonohue added a comment - Duplicate This issue has been marked as a duplicate of 2558 ***

            kohsuke Kohsuke Kawaguchi
            keanuho keanuho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: