title: Set the screen resolution inside a xfvb wrap in a Jenkins pipeline
body: <p>In a Jenkins 2.0 pipeline, I'm using code similar to</p>
  
  <pre><code>wrap([$class: 'Xvfb']) {
    // execute selenium tests
  }
  </code></pre>
  
  <p>As expected, this xvfb session uses the default screen resolution (1024x768x8?). I would like to override it.</p>
  
  <p>According to the documentation at <a href="https://github.com/jenkinsci/xvfb-plugin" rel="nofollow noreferrer">https://github.com/jenkinsci/xvfb-plugin</a>, the Xvfb plugin has a Screen member that controls the resolution. What is the syntax for doing so? I've tried</p>
  
  <pre><code>wrap([$class: 'Xvfb'](Screen:'1440x900x24')) {
    // execute selenium tests
  }
  
  wrap([$class: 'Xvfb'][Screen:'1440x900x24']) {
    // execute selenium tests
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>wrap([$class: 'Xvfb']) {
    Screen = '1440x900x24'
    // execute selenium tests
  }
  </code></pre>