What I interpret from his question is that he means ftps, not sftp. The sftp pipeline isn't a solution for that.
I am myself wondering if this is possible as I'm currently getting an error that SSL is required. From what I see in the pipeline source, SSL is forced off in the pipeline, making ftps impossible. I was wondering what the reasoning behind this was.
@Steven Lindelauff right now we are not really to support this. The reason is that we recommend users to use sftp instead of ftps since ftps looks like a bit legacy. You can find pros and cons here https://www.nsoftware.com/kb/articles/legacy/sbb/ftps-vs-sftp.rst .
We actually recommend to adapt your pipeline to use sftp-deploy pipe instead of ftp-deploy.
BUT if you're not ok with this or it fails it would be nice to provide us with more details of your case.
At any time you can always create a custom pipe that comply your needs.
Looking forward to hearing back from you, thanks
We used the following custom solution, instead of creating a custom pipe:
Example bitbucket-pipelines.yml file:
- step: deployment-step
- lftp -u "$FTP_USER,$FTP_PASSWORD" -e "set ftp:ssl-force true; set ftp:ssl-allow true; set ftp:ssl-protect-data true; mirror -vvv --exclude=some_exclude_file -R $BITBUCKET_CLONE_DIR /REMOTE_PATH;quit" $FTP_HOST
- echo "Deployment finished"
This worked for us so far.
Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...
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