I am just getting started with bitbucket pipelines and ftp-deploy. Is it possible to have a file which has been removed/deleted from the repository also deleted from the remote server when the pipeline is running? I cant have the entire project deleted as there are some folders and files which are saved to certain directories from other scripts.
Here is my current pipeline script.
image: atlassian/default-image:2
pipelines:
branches:
main:
- step:
name: Deploy to Production
deployment: production
script:
- pipe: atlassian/ftp-deploy:0.3.6
variables:
USER: $FTP_USERNAME
PASSWORD: $FTP_PASSWORD
SERVER: $FTP_HOST
REMOTE_PATH: /public_html/personal
DELETE_FLAG: 'false' # Don't delete existing files
EXTRA_ARGS: "--exclude=.bitbucket/ --exclude=.git/ --exclude=bitbucket-pipelines.yml --exclude=.gitignore" # Ignore these
@jamiestraks I guess, you may like rsync more, because this utility is much more flexible https://linux.die.net/man/1/rsync .
Checkout the pipe : https://bitbucket.org/atlassian/rsync-deploy/src
Regards, Galyna
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.