Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Team Services - FTP Publish

Visual Studio Team Services has interesting features like GIT storage and automated building triggered by GIT Commit. I'm trying to use the repository to keep static HTML site files and autobuild to publish files on hosting. Unfortunately the hosting doesn't support any publish way except of FTP connection.

Is it possible to use VSTS autobuild to publish entire site (with set of sub-folders) using FTP connection?

"cURL Upload Files" step supports FTP but it can't create folders structure automatically.

I believe that either "Batch Script" or "Powershell" or "Command line" task can help somehow but stuck with exact implementation :(

like image 861
Dmitry Vasiliev Avatar asked Mar 13 '23 10:03

Dmitry Vasiliev


1 Answers

You can install FTP Uploader extension and then add this task in your build definition to publish files to FTP server.

like image 84
Eddie Chen - MSFT Avatar answered Mar 18 '23 10:03

Eddie Chen - MSFT