【发布时间】:2018-06-22 15:14:30
【问题描述】:
具有以下 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
我可以看到正在执行sftp命令,但结果只是记录:
“已连接到 XXX.XXX.XXX.XXX”
但它没有打开 sftp 提示符。
有没有办法在 sftp 提示符下实际浏览和执行命令?还是有连接sftp提示符的命令?
我还在atlassion社区开了一张票:https://community.atlassian.com/t5/Bitbucket-questions/SFTP-connection-doesn-t-open-host-SFTP-prompt/qaq-p/805328#M27869
【问题讨论】:
标签: ssh bitbucket sftp bitbucket-pipelines