【问题标题】:Generate auto build and upload to ftp server using bitbucket pipelines使用 bitbucket 管道生成自动构建并上传到 ftp 服务器
【发布时间】:2020-10-20 14:06:42
【问题描述】:

我一直在尝试使用 bitbucket 管道生成构建并将其上传到我的 FTP 服务器。 但每次我尝试运行管道时,都会出现此错误。

git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD $FTP_HOST_PATHfatal: 无法访问远程 'ftp://ubuntu:**@mywebsite.com',正在退出... *

我的整个管道脚本看起来像这样

image: samueldebruyn/debian-git
pipelines: 
default: 
    - step: 
      caches:
    - composer 
      script: 
           - apt-get update
           - apt-get -qq install git-ftp
           - git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD sftp://$SFTP_HOST:22/$SFTP_FOLDER

【问题讨论】:

    标签: bitbucket bitbucket-pipelines


    【解决方案1】:

    使用 Rsync 代替 git-FTP,效果很好。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-09
      • 1970-01-01
      • 1970-01-01
      • 2016-06-15
      • 2018-04-29
      • 1970-01-01
      • 1970-01-01
      • 2017-10-17
      相关资源
      最近更新 更多