Hi!
I have created a shell script called deploy.sh on my VPS. This script works fine when typed in the terminal, but doesn't fire when being called from my pipeline.
bitbucket-pipeline.yml
image: atlassian/default-image:3
pipelines:
default:
- parallel:
- step:
name: 'Build and Test'
script:
- echo "Your build and test goes here..."
- step:
name: 'Deployment to Production'
deployment: production
trigger: 'manual'
script:
- cd ./domains/paard.org && sh deploy.sh | ssh <USER>@<HOST>
- echo "Deploy step finished"
deploy.sh
echo "Deploy script started"
cd /home/pimpzilla/domains/paard.org
sh pull.sh
echo "Deploy script finished execution"
pull.sh
#/home/pimpzilla/domains/paard.org
git pull origin master
npm install
npm run production
echo 'Deploy finished'
? Any ideas why the pipeline doesn't fire deploy.sh ?
kind regards, Marco