title: cannot locate file in azure devops pipeline
body: <p>My goal is to</p>
  
  <ol>
  <li>Get postman scripts through an API call in the build stage</li>
  <li>Run these scripts in the test stage</li>
  </ol>
  
  <p>I have step 1 working, but I cannot seem to find the files that I pull from the API call.
  This is the log of the API call to get the postman scripts:</p>
  
  <pre><code>2020-02-11T13:54:34.8779080Z attempting to call Postman API for environment..
  2020-02-11T13:54:34.8781038Z file /home/vsts/work/1/a/postman\EA.API.pipeline.json Saved!
  </code></pre>
  
  <p>This is the result of the run postman script step in the test stage (I try to access both pilot.environment and EA.API.pipeline.json):</p>
  
  <pre><code>error: ENOENT: no such file or directory, open '/home/vsts/work/1/a/postman/environments/pilot.environment.json'
  </code></pre>
  
  <p>Now an option I have considered is that these directories get wiped between stages. I get the scripts in the build stage, and try to run them in the test stage. This is why after pulling the scripts, I make sure that they are actually in the storage, and afterwards I try to publish them as an artifact:</p>
  
  <pre><code>========================== Starting Command Output ===========================
  /bin/bash --noprofile --norc /home/vsts/work/_temp/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx.sh
  /home/vsts/work/1/a
  ├── postman\
  ├── postman\EA.API.pipeline.json
  </code></pre>
  
  <p>But in the next step in the same build stage, I try to publish these tests as an artifact, and I get this error:</p>
  
  <pre><code>##[error]Path does not exist: /home/vsts/work/1/a/postman/EA.API.pipeline.json
  </code></pre>
  
  <p>This is the yaml:</p>
  
  <pre><code>     - task: OneLuckiDev.getPostmanJSON.vsts-release-web-test.oneLuckiGetPostmanScripts@1
          displayName: 'Get Postman Script'
          inputs:
            fileLocation: '$(build.artifactstagingdirectory)/postman'
            apiKey: '$(PostmanAPIKey)'
        - script: 'sudo apt-get install tree'
          displayName: 'install tree'
        - script: 'tree "$(build.artifactstagingdirectory)"'
          displayName: 'run tree'            
        - task: PublishPipelineArtifact@1
          displayName: 'Publish Artifact: postman API tests'
          inputs:
            targetPath: '$(build.artifactstagingdirectory)/postman/EA.API.pipeline.json'
            artifact: PostmanAPITests
            publishLocation: 'pipeline'
  </code></pre>
  
  <p>Why can't I find my files? </p>