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

Copper Contributor

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/

 

cpsingh1983_0-1662681301560.png

 

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'
 
1 Reply
I am also getting the same error, Please let me know if you resolved it