title: Jenkins stash not stashing files
body: <p>I need to stash 2 ear files to be unstashed in the next stage.
  This is my code to stash the files.</p>
  
  <p>steps {
                  sh 'chmod +x gradlew'
                  echo "Building tms-load and tms-loadRemote ear files"</p>
  
  <pre><code>            script {
                  sh "./gradlew -PjdkHome=${env.JAVA_HOME} -PweblogicHome=${WEBLOGIC_PATH} -Penv=at2 buildAll"
              }
              stash includes: "./build/staging/deploy/tms/AT2/*", name: "tmsLoadEars"
          }
  </code></pre>
  
  <p>There are 2 ear files in this directory.
  The gradle successfully builds the files.
  The ant echo shows this: </p>
  
  <blockquote>
    <p>[ant:echo] Deploying to ear area
    'build/staging/deploy/tms/AT2/tms-load'.</p>
  </blockquote>
  
  <p>The file name is 'tms-load.ear'</p>
  
  <p>When I try to unstash and deploy, I get the error that there were no files included in the stash.
  This is my unstash code:</p>
  
  <pre><code>script {
                      println JAVA_BIN_PATH;
                      dir('.') {
                          unstash "tmsLoadEars"
                      }
                      sh '''
                      . ~/.bash_profile
  
                      pghAdminConsole="&lt;server url set here&gt;"
                      wlLevel="L0"
                      "${JAVA_BIN_PATH}"/java -Xms512M -Xmx512M -cp "${WEBLOGIC_PATH}"/server/lib/weblogic.jar weblogic.Deployer \
                          -debug -stage -remote -verbose -upload \
                          -source ./build/staging/deploy/tms/AT2/tms-load.ear \
                          -targets $cluster -adminurl t3://$pghAdminConsole \
                          -username &lt;username here&gt; -password &lt;password here&gt; -deploy
                      '''                   
                  }
  </code></pre>
  
  <p>What am I doing wrong?</p>