我使用Bitbucket作为免费存储库。我要上传文件时,我推送主分支。当我将文件推送到主程序上时出错:
上传..。无法上传文件,退出..。
我的管道配置是:
image: node:8.9.1
pipelines:
default:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
# - npm install
- apt-get update
- apt-get -qq install git-ftp
- git config git-ftp.user $SFTP_USERNAME
- git config git-ftp.password $SFTP_PASSWORD
- git config git-ftp.url sftp://$SFTP_HOST:22/$SFTP_FOLDER
- git ftp init我的变量是在Bitbucket中定义的。
我确信在变量中添加了标识符。这是SFTP方面的问题吗?是否需要向服务器添加配置行?
发布于 2018-04-05 10:28:09
试试这个:
image: samueldebruyn/debian-git
pipelines:
default:
- step:
script:
- apt-get update
- apt-get -qq install git-ftp
- git ftp push --user $FTP_USERNAME --passwd $FTP_PASSWORD sftp://$SFTP_HOST:22/$SFTP_FOLDERhttps://stackoverflow.com/questions/47313050
复制相似问题