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

Copper Contributor


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]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
      # The following path expects the parent job to checkout the lib-pipeline-templates repo.
      ScriptPath: '$(Pipeline.Workspace)/drop/cosmos.configure.ps1'
1 Reply
I am also getting the same error, Please let me know if you resolved it