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'
Online 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.