Utility: Extract Files
VSTS | TFS 2018 | TFS 2017
Extract files from archives to a target folder using match patterns. A variety of standard archive formats are supported including: .zip, .jar, .war, .ear, .tar, .7z., and others.
|Archive file patterns||
The archives you want to extract. The default file path is relative from the root folder of the repo (same as if you had specified
Specify match pattern filters (one on each line) that you want to apply to identify the list of archives to extract. For example:
The pattern is used to match only archive file paths, not folder paths, and not archive contents to be extracted. So you should specify patterns such as
|Destination folder||Folder where the archives will be extracted. The default file path is relative to the root folder of the repo (same as if you had specified
|Clean destination folder before extracting||Select this check box to delete all existing files in the destination folder before beginning to extract archives.|
Q & A
Where can I learn more about file matching patterns?
Q: I'm having problems. How can I troubleshoot them?
A: Try this:
On the variables tab, add
system.debugand set it to
true. Select to allow at queue time.
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?
$(Agent.BuildDirectory) are just a few of the variables you can use. See Variables.
Do I need an agent?
You need at least one agent to run your build or release. Get an agent.