title: Jenkins xml configuration to Groovy-based Jenkins Job DSL
body: <p>Could somebody give me a useful link, where I can find information about converting the <em>complex</em> xml configuration for Jenkins jobs?</p>
  
  <p>Here is a Jenkins job example:</p>
  
  <pre><code>&lt;project&gt;
      &lt;actions/&gt;
      &lt;description&gt;Description&lt;/description&gt;
      &lt;logRotator class="hudson.tasks.LogRotator"&gt;
          &lt;!-- ...--&gt;
      &lt;/logRotator&gt;
      &lt;keepDependencies&gt;false&lt;/keepDependencies&gt;
      &lt;properties&gt;
          &lt;hudson.model.ParametersDefinitionProperty/&gt;&lt;!-- ...--&gt;
      &lt;/properties&gt;
      &lt;scm class="org.jenkinsci.plugins.multiplescms.MultiSCM" plugin="multiple-scms@0.5"&gt;
          &lt;scms&gt;
              &lt;hudson.plugins.git.GitSCM plugin="git@2.4.0"/&gt;&lt;!-- ...--&gt;
              &lt;hudson.plugins.git.GitSCM plugin="git@2.4.0"/&gt;&lt;!-- ...--&gt;
          &lt;/scms&gt;
      &lt;/scm&gt;
      &lt;canRoam&gt;true&lt;/canRoam&gt;
      &lt;disabled&gt;false&lt;/disabled&gt;
      &lt;blockBuildWhenDownstreamBuilding&gt;false&lt;/blockBuildWhenDownstreamBuilding&gt;
      &lt;blockBuildWhenUpstreamBuilding&gt;false&lt;/blockBuildWhenUpstreamBuilding&gt;
      &lt;jdk&gt;Default&lt;/jdk&gt;
      &lt;triggers&gt;
          &lt;hudson.triggers.TimerTrigger/&gt;&lt;!-- ...--&gt;
      &lt;/triggers&gt;
      &lt;concurrentBuild&gt;false&lt;/concurrentBuild&gt;
      &lt;customWorkspace&gt;$HUDSON_WD/$REVISION/checkout&lt;/customWorkspace&gt;
      &lt;builders/&gt;
      &lt;publishers&gt;
          &lt;hudson.plugins.globalenvvar.GlobalEnvironmentVariablePublisher plugin="globalenvvar@1.0"/&gt;&lt;!-- ...--&gt;            
          &lt;hudson.plugins.parameterizedtrigger.BuildTrigger plugin="parameterized-trigger@2.28"/&gt;&lt;!-- ...--&gt;
          &lt;hudson.plugins.templateproject.ProxyPublisher plugin="template-project@1.5"/&gt;&lt;!-- ...--&gt;
      &lt;/publishers&gt;
      &lt;buildWrappers&gt;
          &lt;hudson.plugins.timestamper.TimestamperBuildWrapper plugin="timestamper@1.7.2"/&gt;
      &lt;/buildWrappers&gt;
  &lt;/project&gt;
  </code></pre>