Bitbucket管道-如何排除文件或文件夹? [英] Bitbucket Pipeline - how to exclude files or folders?

查看:137
本文介绍了Bitbucket管道-如何排除文件或文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何排除文件夹或文件无法上传到服务器?

How can I exclude folders or files from being uploaded to the server?

我想忽略"src"文件夹和package.json.

I would like to ignore the "src" folder and package.json.

# -----
image: node:10.15.3

pipelines:
  branches:
    develop:
    - step:
        caches:
        - node
        name: Deploy to develop (Nino) Continuous integration.
        script: # Modify the commands below to build your repository.
          - echo 'Deploying.. hold your horses!'
          - yarn install
          - yarn dev
          - pipe: atlassian/sftp-deploy:0.4.1
            variables:
                USER: $USER
                PASSWORD: $ROOT_PASSWORD
                SERVER: $SERVER
                REMOTE_PATH: /var/www/html/wordpress-starter/
                DEBUG: 'false'

推荐答案

您可以尝试

EXTRA_ARGS: '--exclude=YOUR_DESIRE_FOLDER_PATH/*'

有关更多信息,请参见

For more information please have a look at this.

这篇关于Bitbucket管道-如何排除文件或文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆