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

Consider BuildParametersContext to be extensible

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • 1.41

      Hi,

      It would be a plus to allow some plugins to contribute to the parameters section of the job DSL, in case they provide additional types of parameters.

      Looking at the code (1.41), I see that the BuildParametersContext class stores the nodes to be created as a map (in order to guarantee uniqueness of parameter names I assume). This does make this easy to make this class extend the AbstractExtensibleContext and to implement the addExtensionNode method.

      Can we safely assume that the node would have a name field, so we can index it? That would allow for an easy implementation.

      Best regards,
      Damien.

            daspilker Daniel Spilker
            damien_coraboeuf Damien Coraboeuf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: