Utility: cURL Upload Files

Last Update: 9/26/2016

Team Services | TFS 2017 | TFS 2015 | Previous versions: XAML Build, Release

icon Use cURL to upload files with supported protocols. (FTP, FTPS, SFTP, HTTP, and more)

Demands

curl

Arguments

Argument Description
Files

If you want to upload a single file, click the ... button and select the file.

If you want to upload multiple files, specify a minimatch pattern filter. For example, specify **\*.zip to upload all ZIP files in all sub-folders.

Username Specify the username for server authentication.
Password

Specify the password for server authentication.

Important: Use a secret variable to avoid exposing this value.
URL

URL to the location where you want to upload the files. If you are uploading to a folder, make sure to end the argument with a trailing slash.

Acceptable URL protocols include DICT://, FILE://, FTP://, FTPS://, GOPHER://, HTTP://, HTTPS://, IMAP://, IMAPS://, LDAP://, LDAPS://, POP3://, POP3S://, RTMP://, RTSP://, SCP://, SFTP://, SMTP://, SMTPS://, TELNET://, and TFTP://.

Optional Arguments Arguments to pass to cURL.
Advanced
Redirect Standard Error to Standard Out

In most cases you should leave this selected.

Select if you want to add --stderr - as an argument to cURL. Otherwise, if you clear this check box, cURL will write its progress bar to stderr, which is interpreted by the build process as error output, which could cause the build to fail.

Control options

Example

Build and Deploy your Java application to an Azure web app

Q&A

Where can I learn more about file matching patterns?

File matching patterns reference

Where can I learn FTP commands?

List of raw FTP commands

Do I need an agent?

You need at least one agent to run your build or release. Get an agent.

I can't select a default agent queue and I can't queue my build or release. How do I fix this?

See queues.

I use Team Foundation Server on-premises and I don't see some of these features. Why not?

Some of these features are available only on Visual Studio Team Services and not yet available on-premises. Some features are available on-premises if you have upgraded to the latest version of TFS.