Forum Discussion

cpsingh1983's avatar
cpsingh1983
Copper Contributor
Sep 08, 2022

##[error]ENOENT: no such file or directory, stat '/home/vsts/work/1/

Hi, 

I am trying to access the file from working directory but its throwing below error. evan file is present in same path.  pls advise what is missing here. 

Error: 

##[error]ENOENT: no such file or directory, stat '/home/vsts/work/1/drop/

 

 

below is the code to access the file: 

  - task: AzurePowerShell@5
    displayName: Execute cosmos.configure.ps1
    inputs:
      # The following path expects the parent job to checkout the lib-pipeline-templates repo.
      ScriptPath: '$(Pipeline.Workspace)/drop/cosmos.configure.ps1'
 

Resources