When running the staging branch from my pipeline, it's failing and throwing the below error
<span>bash: cd: /srv/repo: No such file or directory</span><span>+ cd /srv/repo<br></span>
Below is my bitbucket-pipelines.yml file
image: "node:6.10.0"
pipelines:
branches:
default:
- step:
script:
- echo 'this is the default script and should do nothing!'
staging:
- step:
script:
- echo 'Building and Deploying the staging branch'
- ssh user@ip
- cd /srv/repo
- git pull
- git checkout staging
- npm install
- pm2 restart staging-api
The `/srv/repo` directory does exist on the `ip` server. Why is the pipeline failing and stating that the directory does not exist?