How to deploy via FTP a website using BitBucket Pipelines
<p>I tried many times to execute a Continuous Integration via BitBucket Pipeline (beta). For the moment I need a very simple task, just update my remote server when a push is made on repository (In the past I used for this purpose CodeShip with a very similar syntax).</p>

<p>In Pipelines is necessary to set up a file called <code>bitbucket-pipelines.yml</code> which contains several rows to differentiate between branches, etc. but the main instruction is:</p>

<pre><code>- lftp -c "open -u $FTP_USER,$FTP_PASSWORD ftp.mydomain.com; set ssl:verify-certificate no; mirror -Rne /opt/atlassian/bitbucketci/agent/build /clone/ /public_html/dev"
</code></pre>

<p>Unfortunately it does not run correctly because it failed (apparently with infinite loop and new attempts).</p>

<p>I tried to discuss this topic with Support but I did not recieve any useful help and in the final message, they simply suggested me other resources.</p>

<p>Maybe, is there anybody that set up succesfully a similar things?</p>

<p>Thanks</p>