{"id":18455,"date":"2016-08-18T07:27:14","date_gmt":"2016-08-18T11:27:14","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/?p=18455"},"modified":"2019-02-14T17:33:45","modified_gmt":"2019-02-15T01:33:45","slug":"upload-files-with-ftp-ftps","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/upload-files-with-ftp-ftps\/","title":{"rendered":"Upload Files from Team Services Builds and Releases with FTP\/FTPS"},"content":{"rendered":"<p>Team Services includes\u00a0a new build and release task, FTP Upload.\u00a0 Now your Team Services\u00a0build or release can upload files using FTP or FTPS.\u00a0 The FTP Upload task is cross-platform and does not require additional dependencies.\u00a0This task is available today in Team Services and will be available in the next version of Team Foundation Server for on-premises installations.<\/p>\n<p>All connections are\u00a0made securely with FTPS whether the service endpoint specifies ftp:\/\/ or ftps:\/\/, as long as\u00a0the target server supports FTPS.\u00a0 You can restrict uploads to only use FTPS by specifying the ftps:\/\/ protocol (and thereby fail if the target FTP server does not support FTPS).<\/p>\n<p>File selection\u00a0is controlled using mini-match patterns to\u00a0allow for fine-tuned selection (or you can simply specify ** to upload all files). \u00a0Advanced options allow further upload customization, for cleaning, overwriting,\u00a0preserving relative file paths, and trusting self-signed server certificates.\u00a0\u00a0Your builds and releases now have the flexibility to upload entire folder structures,\u00a0precisely-selected individual files to overwrite an existing structure, or even flatten directory structures when uploaded to\u00a0the FTP server.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/6\/2019\/05\/FtpUpload.png\"><img decoding=\"async\" width=\"1171\" height=\"558\" class=\"alignnone size-full wp-image-19675\" alt=\"FtpUpload\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2016\/08\/FtpUpload.png\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><iframe title=\"Team Services FTP Upload Build Task\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/oPnVyXlku4I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>This build and release task is\u00a0<a target=\"_blank\" href=\"https:\/\/github.com\/Microsoft\/vsts-tasks\">open source<\/a>. <span>Contributions are welcome, and feel free to use these as a pattern to create\u00a0your own <\/span><a href=\"https:\/\/www.visualstudio.com\/docs\/integrate\/extensions\/overview\">extensions<\/a><span> in the <\/span><a href=\"https:\/\/marketplace.visualstudio.com\/vsts\">Team Services Marketplace<\/a>.\u00a0If you have any suggestions or find issues, reach out to us on <a target=\"_blank\" href=\"https:\/\/github.com\/Microsoft\/vsts-tasks\/issues\">GitHub<\/a>.<\/p>\n<p>To learn more about setting up a Tomcat server to use with this task, please see the instructions for <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2016\/08\/18\/deploying-an-azure-ubuntu-linux-vm-running-apache-tomcat-for-use-with-visual-studio-team-services-and-team-foundation-server\/\">Ubuntu <\/a>and <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudioalm\/2016\/08\/18\/deploying-an-azure-red-hat-linux-vm-running-apache-tomcat-for-use-with-visual-studio-team-services-and-team-foundation-server\/\">Red Hat<\/a>.<\/p>\n<p>Also check out <a target=\"_blank\" href=\"https:\/\/visualstudio.microsoft.com\">Team Services for Java<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Team Services includes\u00a0a new build and release task, FTP Upload.\u00a0 Now your Team Services\u00a0build or release can upload files using FTP or FTPS.\u00a0 The FTP Upload task is cross-platform and does not require additional dependencies.\u00a0This task is available today in Team Services and will be available in the next version of Team Foundation Server for [&hellip;]<\/p>\n","protected":false},"author":195,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[226,1],"tags":[],"class_list":["post-18455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ci","category-devops"],"acf":[],"blog_post_summary":"<p>Team Services includes\u00a0a new build and release task, FTP Upload.\u00a0 Now your Team Services\u00a0build or release can upload files using FTP or FTPS.\u00a0 The FTP Upload task is cross-platform and does not require additional dependencies.\u00a0This task is available today in Team Services and will be available in the next version of Team Foundation Server for [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/18455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/195"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=18455"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/18455\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=18455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=18455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=18455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}