-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: parameterized-trigger-plugin
Friends:
Â
Thank You for your time and attention in advance.
Â
Need to understand something.
Â
I am using jobdsl and I am seeing some strange behaviour.
Â
With the following jobdsl
Â
{quote}}Â Â
Â
the xml in attachment1 gets created.Then I made changes to add the changes with configure block to add the xml fragment for hudson.plugins.parameterizedtrigger.FileBuildParameterFactory
Â
job('example') {
  steps {
    downstreamParameterized {
      trigger('Project1') {
        block {
          buildStepFailure('FAILURE')
          failure('FAILURE')
          unstable('UNSTABLE')
          Â
        }
        parameterFactories {
// Looks for files that match the specified pattern in the current build, then for each of them trigger a build of the specified project(s) by passing that file as a file parameter.
forMatchingFiles("cool", "test")
          Â
          configure {
            it /'builders'/'hudson.plugins.parameterizedtrigger.TriggerBuilder'/'configs'/'hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig/configFactories'/'hudson.plugins.parameterizedtrigger.FileBuildParameterFactory'
         }
        }
        Â
      }
    }
  }
{quote}}Â Â
Â
This one produces xml with attachment 2
Â
Expected output (job created manually and output captured.
Â

Â
Â
Output that gets created with jobDSL
Â

Â
Â
Can folks provide help or advise on what I might be doing wrong ?
Â
Â
Regards,
-Narahari