title: How can I set the job timeout using the Jenkins DSL
body: <p>How can I use <a href="https://github.com/jenkinsci/job-dsl-plugin/wiki/Job-reference" rel="noreferrer">the Jenkins DSL</a> to set the job timeout to 10 minutes ?</p>
  
  <p>From <a href="http://job-dsl.herokuapp.com/" rel="noreferrer">http://job-dsl.herokuapp.com/</a>, I can enter</p>
  
  <pre><code>job {
    name 'ci'
    description 'Build and test the app.'
    wrappers {    
       timeout()
     }
  }
  </code></pre>
  
  <p>and it generates the following block for the timeout, with a default of 3 minutes.</p>
  
  <pre><code>&lt;buildWrappers&gt;
      &lt;hudson.plugins.build__timeout.BuildTimeoutWrapper&gt;
          &lt;strategy class='hudson.plugins.build_timeout.impl.AbsoluteTimeOutStrategy'&gt;
              &lt;timeoutMinutes&gt;3&lt;/timeoutMinutes&gt;
          &lt;/strategy&gt;
          &lt;operationList&gt;&lt;/operationList&gt;
      &lt;/hudson.plugins.build__timeout.BuildTimeoutWrapper&gt;
  &lt;/buildWrappers&gt;
  </code></pre>
  
  <p>What do I need to enter as the 'timeoutClosure' to get the DSL to generate</p>
  
  <pre><code>&lt;timeoutMinutes&gt;10&lt;/timeoutMinutes&gt;
  </code></pre>
  
  <p>instead ?</p>