cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error

I am running a azure devops pipeline and facing the error below.
I am running a azure devops pipeline and facing the error below.
/usr/bin/bash –noprofile –norc /home/***/myagent/_work/_temp/d6b34bdf-89e5-43e9-862a-c0c33f02f84f.sh
cp: cannot stat ‘on…


This content originally appeared on DEV Community and was authored by prince raj

I am running a azure devops pipeline and facing the error below.
I am running a azure devops pipeline and facing the error below.
/usr/bin/bash --noprofile --norc /home/***/myagent/_work/_temp/d6b34bdf-89e5-43e9-862a-c0c33f02f84f.sh
cp: cannot stat 'onlineshop': No such file or directory

[error]Bash exited with code '1'.

This is the code snippet of the pipeline

stages:

  • stage: Checkout displayName: 'Checkout Stage' jobs:
    • job: CheckoutJob displayName: 'Checkout Job' steps:
      • checkout: self
      • checkout: shop clean: true path: shop
      • script: | cd $(System.DefaultWorkingDirectory) && sudo cp -r onlineshop $(buildFolder)/builds

My source code i.e. onlineshop is not coming under _work/5/s when $(System.DefaultWorkingDirectory) is running. source code onlineshop is coming under _work/5/onlineshop. because of this I am getting error.

Please help if anyone can help to resolve the issue.

Thanks in advance.


This content originally appeared on DEV Community and was authored by prince raj


Print Share Comment Cite Upload Translate Updates
APA

prince raj | Sciencx (2024-07-18T15:26:34+00:00) cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error. Retrieved from https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/

MLA
" » cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error." prince raj | Sciencx - Thursday July 18, 2024, https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/
HARVARD
prince raj | Sciencx Thursday July 18, 2024 » cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error., viewed ,<https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/>
VANCOUVER
prince raj | Sciencx - » cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/
CHICAGO
" » cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error." prince raj | Sciencx - Accessed . https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/
IEEE
" » cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error." prince raj | Sciencx [Online]. Available: https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/. [Accessed: ]
rf:citation
» cp: cannot stat ‘bhfonlineshop’: No such file or directory. Azure devops pipeline error | prince raj | Sciencx | https://www.scien.cx/2024/07/18/cp-cannot-stat-bhfonlineshop-no-such-file-or-directory-azure-devops-pipeline-error/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.