Hello,
I'm using bitbucket pipeline for deploying my application on my server.
In my pipeline script i connect on my server with ssh and run a bash script on it,
Everything look's to be ok, but after the bash script exit (with a 0, cause of success), nothing happens, the pipeline keep "processed", doing nothing, instead of ending with a success.
What i missing ? how the pipeline script can catch the end of the bash script ?
Here is my pipeline script :
image: samueldebruyn/debian-git
pipelines: branches: develop:
- step: caches:
- node script:
- apt-get update
- apt-get install -y unzip
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_HOST_DEV
- ssh -tt $SSH_HOST 'bash -s' < deploy.bash
Here is my bash script :
#!/bin/bashcd
/path/to/my/folder
npm install
pm2 restart developement
exit $?
thank you !
(sorry for my english)