Utility: Publish Build Artifacts

Last Update: 3/31/2017

Team Services | TFS 2017 | TFS 2015 Update 3 | TFS 2015 RTM | Previous versions (XAML builds)

Publish Build artifacts to the server or a file share.


Looking to get started working with build artifacts? See Artifacts in Team Build.




Argument Description
Path to Publish

Path to the folder or file you want to publish. The path must be a fully qualified path or a valid path relative to the root directory of your repo. Typically you'll specify $(Build.ArtifactStagingDirectory). See Artifacts in Team Build.

Artifact Name Specify the name of the artifact. For example: drop
Artifact Type

Choose server to store the artifact on your Team Foundation Server. This is the best and simplest option in most cases. See Artifacts in Team Build.

Control options

Q & A

Q: I'm having problems. How can I troubleshoot them?

A: Try this:

  1. On the variables tab, add system.debug and set it to true. Select to allow at queue time.

  2. In the explorer tab, view your completed build and click the build step to view its output.

The control options arguments described above can also be useful when you're trying to isolate a problem.

Q: How do variables work? What variables are available for me to use in the arguments?

A: $(Build.SourcesDirectory) and $(Agent.BuildDirectory) are just a few of the variables you can use. See Variables.