JobDSL custom config file
<p>I'm trying to setup a jenkins job with custom config file, original xml looks as follows (the relevant part):</p>

<pre><code>&lt;buildWrappers&gt;
  &lt;org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper plugin="config-file-provider@2.11"&gt;
    &lt;managedFiles&gt;
      &lt;org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile&gt;
        &lt;fileId&gt;30de8d2f-621d-4c51-b644-4302b548fd15&lt;/fileId&gt;
        &lt;targetLocation&gt;./src/&lt;/targetLocation&gt;
        &lt;variable/&gt;
        &lt;replaceTokens&gt;false&lt;/replaceTokens&gt;
      &lt;/org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile&gt;
    &lt;/managedFiles&gt;
  &lt;/org.jenkinsci.plugins.configfiles.buildwrapper.ConfigFileBuildWrapper&gt;
&lt;/buildWrappers&gt;
</code></pre>

<p>Here's my JobDSL attempt:</p>

<pre><code>job('example') {
    configure{
    it / 'buildWrappers' &lt;&lt; 'org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile' {
        managedFiles {
            org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile{
                fileId '30de8d2f-621d-4c51-b644-4302b548fd15'
                targetLocation './/src//'
        }
      }
    }
  }
}
</code></pre>

<p>What am I missing? Thanks!</p>