title: What's the working directory in Jenkins after executing a shell command box?
body: <p>I'm looking at a Jenkins job and trying to understand it.</p>
  
  <p>I have an <strong>Execute shell</strong> command box in my <strong>Build</strong> section:</p>
  
  <pre><code>&gt; mkdir mydir 
  &gt; cd mydir
  &gt; 
  &gt; svn export --force https://example.com/repo/mydir .
  </code></pre>
  
  <p>When Jenkins is done executing that command, and moves on to the next build step, what is its working directory?
  <code>workspece-root/</code> or <code>workspace-root/mydir</code> ?</p>
  
  <p>As the next step, I have <strong>Invoke top-level Maven targets</strong> (still in the <strong>Build</strong> section).</p>
  
  <p>What I really want to know is: why does that execute successfully?<br/>
  Is it because Jenkins automatically moves back to the <code>workspace-root/</code> folder after executing a shell command box, or is it because the next job is a "top-level" job, and Jenkins therefore changes back to the <code>workspace-root/</code>?</p>