最初,我只想将已提交的更改上传到服务器,但是后来我决定每次提交都可以上传某些目录。
我当前的Yaml文件: 管道:
default:
- step:
script:
- echo "This script runs on all branches that don't have any specific pipeline assigned in 'branches'."
branches:
develop:
- step:
name: Deploy to develop
deployment: test
trigger: automatic
script:
- pipe: atlassian/sftp-deploy:0.3.1
variables:
USER: '.....'
SERVER: '.....'
REMOTE_PATH: '...../wp-content/'
LOCAL_PATH: ${BITBUCKET_CLONE_DIR}/wp-content/*
现在可以在LOCAL_PATH中添加模式逻辑以排除某些文件夹,例如“上载”目录