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

DownstreamTriggerParameterContext should be an ExtensibleContext

XMLWordPrintable

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

      I am using the Job DSL plugin on my project. I have a proprietary plugin, part of which is
      a provider of parameters for the parameterized-trigger plugin. This allows me to trigger
      a deployment with properties specified by my plugin:

        public class MyCustomBuildParameters
            extends hudson.plugins.parameterizedtrigger.AbstractBuildParameters
        {
      
          // ...
      
          @Extension
          public static class DescriptorImpl extends Descriptor<AbstractBuildParameters>
          {
      
            // ...
      
          }
      
        }
      
      

      This works great in the UI - I would like to be able to specify this somehow as part of a job DSL:

        job('example') {
          publishers {
            // ...
            downstreamParameterized{
              trigger('') {
                 myCustomParameters()
              }
            }
          }
        }
      

      In order to do this, DownstreamTriggerParameterContext needs to be an ExtensibleContext

            daspilker Daniel Spilker
            dalvizu Dan Alvizu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: