【问题标题】:Bitbucket Pipelines Push full files to ftpBitbucket 管道将完整文件推送到 ftp
【发布时间】:2016-07-23 08:39:59
【问题描述】:

我们目前正在测试 Bitbucket 管道 Beta(到目前为止非常喜欢)。 不过我有一个问题。 我们正在使用 git-ftp 上传我们的源/文件,但最重要的是,我们需要推送完整的子域补丁文件(Index.php 和 .htaccess),它们不会经常更改,但我们每次都必须完全推送它们而不仅仅是变化。 到目前为止,我们无法使用 git-ftp 让它工作。 我们是不是做错了什么?

我们一直保留的错误信息是:

我在下面包含了一些代码,希望您能提供帮助。谢谢。

image: samueldebruyn/debian-git

pipelines:
  branches:
    develop:
      - step:
          script:
            - echo "Pipeline Init for dev."
            - apt-get update
            - apt-get -qq install git-ftp
            - echo "'_$(git status -uno --porcelain | wc -l)_'"
            - git status -uno --porcelain
            - echo "Initiating Push site:dev Source."
            - git config git-ftp.syncroot Source/
            - git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/
            - echo "Initiating Push site:dev subDomianPatch."
            - git config git-ftp.syncroot SubDomainPatches/dev/dev_subdomain_patch/public_html/
            - git ftp push --user $Username --passwd $Pwd ftp://dev.iwantaspeaker.com/public_html/

【问题讨论】:

  • 你找到答案了吗?

标签: bitbucket-pipelines


【解决方案1】:
猜你喜欢
  • 2019-03-18
  • 2018-04-29
  • 2017-10-17
  • 2018-10-24
  • 1970-01-01
  • 2017-05-21
  • 2014-10-23
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多