title: Jenkins pipeline - how to get git file path
body: <p>This is a snippet from my <code>Jenkinsfile</code>:</p>
  
  <pre><code>        stage('Checkout project') {
              checkout scm
          }
          scalaImage = docker.image('&lt;myNexus&gt;/centos-sbt:2.11.8')
          stage('Test project') {
              docker.withRegistry('&lt;myNexus&gt;', 'jenkins-nexus') {
                  scalaImage.inside('-v /var/lib/jenkins/.ivy2:/root/.ivy2') { c -&gt;
                      sh 'sbt clean test'
                  }
              }
          }
  </code></pre>
  
  <p>When I look in the docs for what <code>.inside</code> does I find:</p>
  
  <ol>
  <li>Automatically grab a slave and a workspace (no extra node block is
  required).</li>
  <li>Pull the requested image to the Docker server (if not
  already cached). </li>
  <li>Start a container running that image. </li>
  <li>Mount the Jenkins workspace as a “volume” inside the container, using the same <strong>file path</strong></li>
  </ol>
  
  <p>My question is regarding the last two words of point 4. Is there a way to get the file path that the plugin is using to mount the code into the docker container?</p>
  
  <p>Thank you.</p>