When using pipe: atlassian/sftp-deploy:0.5.2, how when I delete a file/folder from my repo can I automatically delete the same file/folder on my webserver.
bitbucket-pipelines.yml
pipelines:
default:
- step:
name: Production
deployment: Production
# trigger: manual # Uncomment to make this a manual deployment.
script:
- pipe: atlassian/sftp-deploy:0.5.2
variables:
USER: '$SFTP_USERNAME'
PASSWORD: '$SFTP_PASSWORD'
SERVER: '$SFTP_SERVER'
LOCAL_PATH: '$SFTP_LOCAL_PATH'
REMOTE_PATH: '$SFTP_REMOTE_PATH'
DEBUG: 'true'
EXTRA_ARGS: '-P 22 -oStrictHostKeyChecking=no'
Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.