What does a ws() block do in Jenkins? : <p>I'm trying to convert few <code>Jenkinsfile</code>s from <a href="https://jenkins.io/doc/book/pipeline/syntax/#scripted-pipeline" rel="noreferrer">Scripted Pipeline</a> to <a href="https://jenkins.io/doc/book/pipeline/syntax/#declarative-pipeline" rel="noreferrer">Declarative Pipeline</a>. I have a block like this in a <code>Jenkinsfile</code>:</p>

<pre><code>ws("/path/to/dir") {
    // do stuff
}
</code></pre>

<p>I wonder what does it do exactly and what's the proper way to convert it to the Declarative Pipeline syntax.</p>
