Having the following bitbucket-pipeline.yml:
pipelines:
default:
- step:
name: deploy to production
script:
- sftp -oPort=PPPP pi@XXX.XXX.XXX.XXX
- cd /home/username/webserver
- put -r nameOfTheBuildFolder build/ - exit
I can see that the sftp command is being executed, but the result is just logging:
"Connected to XXX.XXX.XXX.XXX"
But it's not opening a sftp prompt.
Is there a way to actually browse and do command on the sftp prompt? Or is there a command to connect to the sftp prompt?
I also made a ticket at stackoverflow: https://stackoverflow.com/questions/50529815/bitbucket-pipeline-sftp-connection-doesnt-open-host-sftp-prompt