Logo

dev-resources.site

for different kinds of informations.

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

Published at
7/18/2024
Categories
azuredevops
azure
Author
prince_raj_01573cd3c01c7a
Categories
2 categories in total
azuredevops
open
azure
open
Author
25 person written this
prince_raj_01573cd3c01c7a
open
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 '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.

azuredevops Article's
30 articles in total
Favicon
Creating SBOM with sbom-tool and CycloneDX on Azure DevOps
Favicon
Public IP Address in Azure | Understanding Public IP Address in Azure VM
Favicon
Terraform - Mastering Idempotency Violations - Handling Resource Conflicts and Failures in Azure
Favicon
Azure Devops Converting Classic Pipelines to Yaml Based Pipeline
Favicon
Register Azure DevOps Agents with Service Principal Secret !
Favicon
The Ultimate Guide to Azure DevOps: Key Benefits for Software Development Projects
Favicon
Azure DevOps Zero to Hero Series
Favicon
Azure DevOps Series - Azure Boards
Favicon
cp: cannot stat 'bhfonlineshop': No such file or directory. Azure devops pipeline error
Favicon
How to Maintain Issue Hierarchy Between Jira and Azure DevOps
Favicon
Azure DevOps | Using Terraform
Favicon
Azure DevOps | Installing Postman and Newman using npm
Favicon
Azure DevOps | Running JMeter Test Collection using JMeter Docker Image
Favicon
Azure DevOps | Running a Postman Collection using Newman Docker Image
Favicon
Azure DevOps | Deploy Postman Tests in Azure DevOps Test Plans
Favicon
Exploring Microsoft Azure AI Capabilities Using React, Github Actions, Azure Static Apps and Azure AI
Favicon
Azure DevOps Zero-to-Hero
Favicon
Azure pipelines - Passing variables across stages
Favicon
Terraform - Keep dependencies up to date with Dependabot (Azure DevOps version)
Favicon
Automate Azure VM Password Rotation with PowerShell and Azure DevOps
Favicon
Investigating az-cli performance on the hosted Azure Pipelines and GitHub Runners
Favicon
Azure DevOps Pipeline deployments to Azure App Services with Access Restrictions
Favicon
Step by step for build , test and deploy using azuredevops pipeline
Favicon
Step by Step instruction hosting on aks cluster for begineers
Favicon
Deploying to Azure from Azure DevOps without secrets
Favicon
VSBuild task fails on self-hosted Azure Pipelines Agent
Favicon
Azure devops pipeline for dotnet with cicd
Favicon
Bicep modules with PSRule – Testing, documentation, CI Pipeline & examples
Favicon
Conectando o VS Community ao Azure DevOps
Favicon
Como clonar um projeto no Azure DevOps

Featured ones: