It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Require option to NOT --delete-first

Require flag or option to disable --delete-first from the mirror command sent to lftp.


master deploy is to root of web-dir

/ <-- here

test is to subdir

/test/ <-- here

master deploy, due to --delete-first clears the /test/ directory

I did not find an obvious solution at

src ref: line 40


1 answer

1 accepted

1 vote
Answer accepted

Hi @RyeNCode ,
In a new version of ftp-deploy: 0.3.0 we added DELETE_FLAG variable to make --delete-first optional. To disable --delete-first flag you may write:

  - pipe: atlassian/ftp-deploy:0.3.0
      USER: my-ftp-user
      REMOTE_PATH: /tmp/my-remote-directory
      LOCAL_PATH: /my-working-directory,
      DELETE_FLAG: 'false'

Please notice that the default value of DELETE_FLAG is true - to leave the previous logic for those who already use the pipe.

If you have any questions or suggestions - feel free to leave it, we are always grateful for the feedback.

Awesome, thank you for the quick turn around on this @Viktoriia Kozopas !

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,051 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you